Re: Disabling gcc inline operation

2014-03-24 Thread anish singh
On Mon, Mar 24, 2014 at 2:33 AM, Arend van Spriel ar...@broadcom.com wrote: On 23/03/14 23:31, anish singh wrote: Many a time i have got a crash and it is difficult to find out the exact function which crashed because the crash stack doesn't show the real function because gcc inlines many

Disabling gcc inline operation

2014-03-23 Thread anish singh
Many a time i have got a crash and it is difficult to find out the exact function which crashed because the crash stack doesn't show the real function because gcc inlines many functions when ever it desires or when it optimizes for speed. So i don't want gcc to inline any function instead just

Re: list_empty atomic?

2013-12-12 Thread anish singh
On Thu, Dec 12, 2013 at 12:21 PM, Filipe David Manana fdman...@gmail.com wrote: Hello, I have a list that is manipulated by several threads. Insert, remove and iteration are protected by a lock. Is the locking necessary too just for checking if the list is empty, i.e., is list_empty()

Re: questions of cpuidle

2013-12-10 Thread anish singh
On Mon, Dec 9, 2013 at 11:27 PM, Daniel Lezcano daniel.lezc...@linaro.org wrote: On 12/10/2013 07:33 AM, Alex Shi wrote: On 12/09/2013 10:17 PM, Daniel Lezcano wrote: Concerning the wake up of the cpu: the cpu disabled the irq and goes to sleep, it is up to the firmware to wake up the cpu

Re: list_head and lock?

2013-11-17 Thread anish singh
On Sun, Nov 17, 2013 at 5:19 PM, 韩磊 bonben1...@gmail.com wrote: when we delete,add,search,amend the list_head,should we use spinlock or rcu in case of conflicit to list_head??? There is no implicit locking when we use 'list' api's.You should explicitly do that AFAIK. Thank you! -- To

Re: [RFC][PATCH] x86: Lazy disabling of interrupts

2013-10-10 Thread anish singh
On Thu, Oct 10, 2013 at 5:57 PM, Steven Rostedt rost...@goodmis.org (by way of Steven Rostedt rost...@goodmis.org) (by way of Steven Rostedt rost...@goodmis.org wrote: [ Resending, as somehow Claws email, removed the quotes from H. Peter Anvin, and that prevented LKML from receiving this ]

Re: [PATCH] fix a Sparse warning in the arch/x86/kernel/irq_work.c file

2013-08-12 Thread anish singh
On Tue, Aug 13, 2013 at 5:59 AM, Steven Rostedt rost...@goodmis.org wrote: On Mon, 12 Aug 2013 15:18:16 -0700 Shailaja Neelam neelamsha...@gmail.com wrote: I am a high school student trying to become familiar with the opensource process and linux kernel. This is my first submission to the

Re: [PATCH] bitops: move BITS() macro to the bitops file

2013-08-07 Thread anish singh
On Wed, Aug 7, 2013 at 2:36 PM, Linus Walleij linus.wall...@linaro.org wrote: This macro was invented by Mattias Nilsson for the usecase where you want to set a sequence of bits inside a n-bit word, while leaving the head and tail of the sequence all zeroes. For example: #include

Question:Bsearch replace the search_extable implementations

2013-07-15 Thread anish singh
Hello Rusty, Right now I see so many places in the kernel where we open code binary search implementations such as search_extable implementations. http://lxr.free-electrons.com/ident?a=powerpc;i=search_extable Would it be ok to replace this with bsearch lib code? I am not trying to fix any

Re: Question:Bsearch replace the search_extable implementations

2013-07-15 Thread anish singh
On Tue, Jul 16, 2013 at 10:29 AM, Rusty Russell ru...@rustcorp.com.au wrote: anish singh anish198519851...@gmail.com writes: Hello Rusty, Right now I see so many places in the kernel where we open code binary search implementations such as search_extable implementations. http://lxr.free

Re: [PATCH] [RFC]Watchdog:core: constant pinging until userspace timesout when delay very less

2013-06-27 Thread anish singh
On Fri, Jun 28, 2013 at 1:01 AM, Wim Van Sebroeck w...@iguana.be wrote: Hi Anish, Certain watchdog drivers use a timer to keep kicking the watchdog at a rate of 0.5s (HZ/2) untill userspace times out.They do this as we can't guarantee that watchdog will be pinged fast enough for all system

Re: [PATCH 4/6] watchdog: Boot-disable by default on full dynticks

2013-06-14 Thread anish singh
Thanks Paul Steve for replying. On Fri, Jun 14, 2013 at 5:56 PM, Paul E. McKenney paul...@linux.vnet.ibm.com wrote: On Fri, Jun 14, 2013 at 09:47:31AM +0530, anish singh wrote: On Thu, Jun 13, 2013 at 10:46 PM, Steven Rostedt rost...@goodmis.org wrote: On Thu, 2013-06-13 at 21:51 +0530, anish

Re: [PATCH 4/6] watchdog: Boot-disable by default on full dynticks

2013-06-14 Thread anish singh
On Fri, Jun 14, 2013 at 9:42 PM, Steven Rostedt rost...@goodmis.org wrote: On Fri, 2013-06-14 at 21:33 +0530, anish singh wrote: May I know why we zeroed in on 1Hz? Is there any logical reason or just because it is above 0Hz? We had to keep a tick. What number would you have picked

Re: [PATCH 4/6] watchdog: Boot-disable by default on full dynticks

2013-06-13 Thread anish singh
On Thu, Jun 13, 2013 at 9:18 PM, Steven Rostedt rost...@goodmis.org wrote: On Thu, 2013-06-13 at 11:20 -0400, Don Zickus wrote: I don't know enough about how full dynticks work to even present a solution. But currently I was working with the Red Hat performance team to enhance perf to help

Re: [PATCH 4/6] watchdog: Boot-disable by default on full dynticks

2013-06-13 Thread anish singh
On Thu, Jun 13, 2013 at 10:46 PM, Steven Rostedt rost...@goodmis.org wrote: On Thu, 2013-06-13 at 21:51 +0530, anish singh wrote: The concept behind full dynamic ticks is very easy. When you set a given CPU(s) to dynamic tick, when it only has a single task scheduled on that CPU

Re: [PATCH] extcon: Add an API to get extcon device from dt node

2013-06-11 Thread anish singh
On Wed, Jun 12, 2013 at 7:09 AM, Chanwoo Choi cw00.c...@samsung.com wrote: From: Kishon Vijay Abraham I kis...@ti.com Added an API of_extcon_get_extcon_dev() to be used by drivers to get extcon device in the case of dt boot (this can be used instead of extcon_get_extcon_dev()).

Re: [PATCHv2 4/6] sched_clock: Add support for 32 bit sched_clock

2013-06-10 Thread anish singh
On Tue, Jun 4, 2013 at 3:42 AM, Russell King - ARM Linux li...@arm.linux.org.uk wrote: On Mon, Jun 03, 2013 at 02:11:59PM -0700, Stephen Boyd wrote: On 06/03/13 02:39, Russell King - ARM Linux wrote: On Sat, Jun 01, 2013 at 11:39:41PM -0700, Stephen Boyd wrote: +} + +void __init

Re: [PATCHv2 4/6] sched_clock: Add support for 32 bit sched_clock

2013-06-10 Thread anish singh
On Mon, Jun 10, 2013 at 9:08 PM, Russell King - ARM Linux li...@arm.linux.org.uk wrote: Least I can do is to say Thanks. On Mon, Jun 10, 2013 at 08:46:36PM +0530, anish singh wrote: Probably a trivial question.I was wondering why this particular requirement exists in the first place.I looked

Re: [checkpatch] - Confusion

2013-06-09 Thread anish singh
On Mon, Jun 10, 2013 at 11:21 AM, PINTU KUMAR pintu_agar...@yahoo.com wrote: Hi, I wanted to submit my first patch. But I have some confusion about the /scripts/checkpatch.pl errors. After correcting some checkpatch errors, when I run checkpatch.pl, it showed me 0 errors. But when I

Re: [PATCH] [RFC]Watchdog:core: constant pinging until userspace timesout when delay very less

2013-06-08 Thread anish singh
On Thu, Jun 6, 2013 at 10:11 AM, Guenter Roeck li...@roeck-us.net wrote: On Thu, Jun 06, 2013 at 08:30:01AM +0530, anish singh wrote: Hello Wim Van, Can you look into below? Please be patient. Wim tends to be busy. Sorry, I will wait. Guenter On Wed, Jun 5, 2013 at 8:39 AM, anish singh

Re: [PATCH] [RFC]Watchdog:core: constant pinging until userspace timesout when delay very less

2013-06-05 Thread anish singh
Hello Wim Van, Can you look into below? On Wed, Jun 5, 2013 at 8:39 AM, anish singh anish198519851...@gmail.com wrote: Hello Wim Van Sabroeck, Can I get your inputs on this? On Tue, Jun 4, 2013 at 8:39 AM, anish singh anish198519851...@gmail.com wrote: On Tue, Jun 4, 2013 at 3:55 AM

Re: [PATCH] [RFC]Watchdog:core: constant pinging until userspace timesout when delay very less

2013-06-04 Thread anish singh
Hello Wim Van Sabroeck, Can I get your inputs on this? On Tue, Jun 4, 2013 at 8:39 AM, anish singh anish198519851...@gmail.com wrote: On Tue, Jun 4, 2013 at 3:55 AM, Guenter Roeck li...@roeck-us.net wrote: On Mon, Jun 03, 2013 at 10:23:04PM +0530, anish singh wrote: On Mon, Jun 3, 2013 at 8:57

Re: [PATCH] [RFC]Watchdog:core: constant pinging until userspace timesout when delay very less

2013-06-03 Thread anish singh
any inputs? On Sun, Jun 2, 2013 at 3:56 PM, anish singh anish198519851...@gmail.com wrote: On Sun, Jun 2, 2013 at 3:43 PM, anish kumar anish198519851...@gmail.com wrote: Certain watchdog drivers use a timer to keep kicking the watchdog at a rate of 0.5s (HZ/2) untill userspace times out.They

Re: [PATCH] [RFC]Watchdog:core: constant pinging until userspace timesout when delay very less

2013-06-03 Thread anish singh
On Mon, Jun 3, 2013 at 8:57 PM, Guenter Roeck li...@roeck-us.net wrote: On Sun, Jun 02, 2013 at 03:43:07PM +0530, anish kumar wrote: Certain watchdog drivers use a timer to keep kicking the watchdog at a rate of 0.5s (HZ/2) untill userspace times out.They do this as we can't guarantee that

Re: [PATCH] [RFC]Watchdog:core: constant pinging until userspace timesout when delay very less

2013-06-03 Thread anish singh
On Tue, Jun 4, 2013 at 3:55 AM, Guenter Roeck li...@roeck-us.net wrote: On Mon, Jun 03, 2013 at 10:23:04PM +0530, anish singh wrote: On Mon, Jun 3, 2013 at 8:57 PM, Guenter Roeck li...@roeck-us.net wrote: On Sun, Jun 02, 2013 at 03:43:07PM +0530, anish kumar wrote: Certain watchdog drivers

Re: [PATCH] [RFC]Watchdog:core: constant pinging until userspace timesout when delay very less

2013-06-02 Thread anish singh
On Sun, Jun 2, 2013 at 3:43 PM, anish kumar anish198519851...@gmail.com wrote: Certain watchdog drivers use a timer to keep kicking the watchdog at a rate of 0.5s (HZ/2) untill userspace times out.They do this as we can't guarantee that watchdog will be pinged fast enough for all system loads,

Re: [PATCH v4 1/2] watchdog: New watchdog driver for MEN A21 watchdogs

2013-05-31 Thread anish singh
Hi Guenter, On Fri, May 31, 2013 at 3:32 AM, Guenter Roeck li...@roeck-us.net wrote: On Thu, May 30, 2013 at 11:59:28PM +0200, Wim Van Sebroeck wrote: Hi Guenter, On Tue, May 28, 2013 at 10:10:53AM +0200, Johannes Thumshirn wrote: On Mon, May 27, 2013 at 08:25:54PM +0200, Wim Van Sebroeck

Re: What is listed in /sys/module?

2013-05-30 Thread anish singh
On Thu, May 30, 2013 at 6:24 AM, Rusty Russell ru...@rustcorp.com.au wrote: Jean Delvare kh...@linux-fr.org writes: Hi Greg, Rusty, I have a question related to /sys/module and can't seem to find the answer by myself so I hope you can explain. I noticed that /sys/module contains more than

Re: What is listed in /sys/module?

2013-05-30 Thread anish singh
On Thu, May 30, 2013 at 2:04 PM, Jean Delvare kh...@linux-fr.org wrote: Hi Rusty, Thanks for the fast and helpful reply. On Thu, 30 May 2013 11:53:10 +0530, anish singh wrote: On Thu, May 30, 2013 at 6:24 AM, Rusty Russell ru...@rustcorp.com.au wrote: Jean Delvare kh...@linux-fr.org writes

Re: [PATCH] power_supply: generic-adc-battery: Fix checking if none of the channels are supported

2013-05-28 Thread anish singh
On Fri, May 24, 2013 at 11:11 PM, Axel Lin axel@ingics.com wrote: If none of the channels are supported, index is 0. Also ensure to return error code instead of 0 in goto second_mem_fail path. Signed-off-by: Axel Lin axel@ingics.com Acked-by: anish kumar anish198519851...@gmail.com I

Re: [PATCH 1/2] driver core: firmware loader: don't cache FW_ACTION_NOHOTPLUG firmware

2013-05-27 Thread anish singh
On Mon, May 27, 2013 at 4:00 PM, Ming Lei ming@canonical.com wrote: Generally there are only two drivers which don't need uevent to handle firmware loading, so don't cache these firmwares during Sorry but this statement confuses me i.e. drivers which don't need uevent to handle firmware

Re: [PATCH 1/2] driver core: firmware loader: don't cache FW_ACTION_NOHOTPLUG firmware

2013-05-27 Thread anish singh
On Mon, May 27, 2013 at 5:53 PM, Takashi Iwai ti...@suse.de wrote: At Mon, 27 May 2013 17:26:22 +0530, anish singh wrote: On Mon, May 27, 2013 at 4:00 PM, Ming Lei ming@canonical.com wrote: Generally there are only two drivers which don't need uevent to handle firmware loading, so

Re: [PATCH 1/2] driver core: firmware loader: don't cache FW_ACTION_NOHOTPLUG firmware

2013-05-27 Thread anish singh
On Mon, May 27, 2013 at 6:52 PM, Ming Lei ming@canonical.com wrote: On Mon, May 27, 2013 at 8:40 PM, anish singh anish198519851...@gmail.com wrote: On Mon, May 27, 2013 at 5:53 PM, Takashi Iwai ti...@suse.de wrote: At Mon, 27 May 2013 17:26:22 +0530, anish singh wrote: On Mon, May 27

Re: [I2C] informations + advice about messages handling

2013-05-24 Thread anish singh
On Fri, May 24, 2013 at 12:41 PM, Mylene Josserand mylene.josser...@navocap.com wrote: Hi all, I am learning how i2c is working and I read that, to write in an i2c register, I need to use the function i2c_smbus_write_byte_data. Only in case your device is smbus compliant. I wanted to know

Re: [I2C] informations + advice about messages handling

2013-05-24 Thread anish singh
On Fri, May 24, 2013 at 1:14 PM, Jean Delvare kh...@linux-fr.org wrote: Hi Anish, Mylène, On Fri, 24 May 2013 12:52:40 +0530, anish singh wrote: On Fri, May 24, 2013 at 12:41 PM, Mylene Josserand mylene.josser...@navocap.com wrote: I have read that this function i2c_smbus_write_byte_data

Re: microcode loading got really slow.

2013-05-23 Thread anish singh
On Thu, May 23, 2013 at 3:46 PM, Takashi Iwai ti...@suse.de wrote: At Thu, 23 May 2013 10:06:56 +0200, Takashi Iwai wrote: At Thu, 23 May 2013 15:45:32 +0800, Ming Lei wrote: On Thu, May 23, 2013 at 11:39 AM, Dave Jones da...@redhat.com wrote: On 05/21/2013 04:03 PM, Dave Jones

Re: [RFC PATCH 6/8] kthread: Enable parking requests from setup() and unpark() callbacks

2013-05-21 Thread anish singh
On Tue, May 21, 2013 at 1:19 PM, Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com wrote: On 05/21/2013 11:04 AM, anish singh wrote: On Mon, May 20, 2013 at 9:31 PM, Frederic Weisbecker fweis...@gmail.com wrote: When the watchdog code is boot-disabled by the user, for example through

Re: [RFC PATCH 6/8] kthread: Enable parking requests from setup() and unpark() callbacks

2013-05-20 Thread anish singh
On Mon, May 20, 2013 at 9:31 PM, Frederic Weisbecker fweis...@gmail.com wrote: When the watchdog code is boot-disabled by the user, for example through the 'nmi_watchdog=0' boot option, the setup() callback of the watchdog kthread requests to park the task, and that until the user later

Re: Question pertaining to request_threaded_irq

2013-03-20 Thread anish singh
Hello Vijay, Below I will try my best to answer. On Wed, Mar 20, 2013 at 8:23 PM, Vijay Dixit thelonejo...@gmail.com wrote: Hello, I am new to the Kernel-Mailing list. I am not subscribed at the moment and would really appreciate it, if I can be CC'd for all the reply/responses for my

Re: [PATCH] atomic: improve atomic_inc_unless_negative/atomic_dec_unless_positive

2013-03-13 Thread anish singh
On Tue, Mar 12, 2013 at 11:25 PM, Paul E. McKenney paul...@linux.vnet.ibm.com wrote: On Tue, Mar 12, 2013 at 04:02:47PM +0100, Frederic Weisbecker wrote: 2013/3/12 Paul E. McKenney paul...@linux.vnet.ibm.com: On Tue, Mar 12, 2013 at 12:03:23PM +0800, Ming Lei wrote: On Tue, Mar 12, 2013 at

Re: [PATCH] [Timer][Trivial] __clocksource_register_scale return value use?

2013-03-10 Thread anish singh
ACK or NACK this patch please. On Sat, Mar 9, 2013 at 11:33 AM, anish singh anish198519851...@gmail.com wrote: ping On Thu, Mar 7, 2013 at 4:41 PM, anish kumar anish198519851...@gmail.com wrote: __clocksource_register_scale() currently returns int but it should return void

Re: [PATCH] [Timer][Trivial] __clocksource_register_scale return value use?

2013-03-08 Thread anish singh
ping On Thu, Mar 7, 2013 at 4:41 PM, anish kumar anish198519851...@gmail.com wrote: __clocksource_register_scale() currently returns int but it should return void as there are no error paths in that function. Making it void would help some amount of code to be removed at various places.

Re: [PATCH] [Watchdog][Trivial] Added comments to explain watchdog_disabled variable

2013-03-06 Thread anish singh
On Tue, Feb 19, 2013 at 2:18 AM, Don Zickus dzic...@redhat.com wrote: On Sat, Feb 16, 2013 at 05:44:09PM +0530, anish kumar wrote: From: anish kumar anish198519851...@gmail.com This watchdog_disabled flag is bit of cryptic.Howerver it's usefullnes is multifold. Uses are: 1. Check if

Re: I2C: Fix i2c fail problem when a process is terminated by a signal on octeon in 3.8

2013-02-27 Thread anish singh
On Tue, Feb 26, 2013 at 4:37 PM, Wolfram Sang w...@the-dreams.de wrote: On Tue, Feb 26, 2013 at 11:02:17AM +0100, Jiri Kosina wrote: On Fri, 22 Feb 2013, 송은봉 wrote: I've been debugging the abnormal operation of i2c on octeon. If a process is terminated by signal in the middle of i2c

Re: [patch] generic-adc-battery: forever loop in gab_remove()

2013-02-14 Thread anish singh
On Thu, Feb 14, 2013 at 12:56 PM, Dan Carpenter dan.carpen...@oracle.com wrote: There is a forever loop calling iio_channel_release() because the chan part of the chan ARRAY_SIZE() is missing. This is in both the error handling on probe and also in the remove function. The other thing is

Re: [patch] generic-adc-battery: forever loop in gab_remove()

2013-02-14 Thread anish singh
On Thu, Feb 14, 2013 at 2:06 PM, anish singh anish198519851...@gmail.com wrote: On Thu, Feb 14, 2013 at 12:56 PM, Dan Carpenter dan.carpen...@oracle.com wrote: There is a forever loop calling iio_channel_release() because the chan part of the chan ARRAY_SIZE() is missing. This is in both

Re: [PATCH] [Watchdog][Trivial] Added comments to explain watchdog_disabled variable

2013-02-13 Thread anish singh
On Wed, Feb 13, 2013 at 2:51 PM, Ingo Molnar mi...@kernel.org wrote: * anish singh anish198519851...@gmail.com wrote: Is the below patch picked up? On Sun, Feb 3, 2013 at 9:31 PM, anish kumar anish198519851...@gmail.com wrote: From: anish kumar anish198519851...@gmail.com

Re: [PATCH] driver core: add wait event for deferred probe

2013-02-13 Thread anish singh
On Thu, Feb 14, 2013 at 3:06 AM, Grant Likely grant.lik...@secretlab.ca wrote: On Tue, 12 Feb 2013 10:52:10 +0800, Haojian Zhuang haojian.zhu...@linaro.org wrote: On 12 February 2013 07:10, Andrew Morton a...@linux-foundation.org wrote: On Sun, 10 Feb 2013 00:57:57 +0800 Haojian Zhuang

Re: [PATCH] [Watchdog][Trivial] Added comments to explain watchdog_disabled variable

2013-02-12 Thread anish singh
Is the below patch picked up? On Sun, Feb 3, 2013 at 9:31 PM, anish kumar anish198519851...@gmail.com wrote: From: anish kumar anish198519851...@gmail.com This watchdog_disabled flag is bit of cryptic.Howerver it's usefullnes is multifold. Uses are: 1. Check if

Re: [PATCH V3] suspend: enable freeze timeout configuration through sys

2013-01-31 Thread anish singh
On Thu, Jan 31, 2013 at 2:43 PM, Li, Fei fei...@intel.com wrote: -Original Message- From: Yasuaki Ishimatsu [mailto:isimatu.yasu...@jp.fujitsu.com] Sent: Thursday, January 31, 2013 3:30 PM To: Li, Fei Cc: r...@sisk.pl; a...@linux-foundation.org; linux-kernel@vger.kernel.org;

Re: [PATCH] printk: Avoid softlockups in console_unlock()

2013-01-30 Thread anish singh
On Fri, Jan 18, 2013 at 3:09 AM, Andrew Morton a...@linux-foundation.org wrote: On Thu, 17 Jan 2013 22:04:42 +0100 Jan Kara j...@suse.cz wrote: ... So I played a bit with this. To make things easier for me I added artificial mdelay(len*10) (effectively simulating console able to print 100

Re: [RFC PATCH 1/2] ARM: kernel: update cpuinfo to print CPU model name

2013-01-29 Thread anish singh
On Wed, Jan 30, 2013 at 11:22 AM, Santosh Shilimkar santosh.shilim...@ti.com wrote: On Wednesday 30 January 2013 04:42 AM, Ruslan Bilovol wrote: Hi, On Tue, Jan 29, 2013 at 6:08 PM, Russell King - ARM Linux li...@arm.linux.org.uk wrote: On Tue, Jan 29, 2013 at 05:54:24PM +0200, Ruslan

Re: Can jiffies freeze?

2013-01-21 Thread anish singh
On Tue, Jan 22, 2013 at 11:21 AM, sandeep kumar coolsandyfor...@gmail.com wrote: Hi all As far as I know jiffie counter is incremented HZ times/second. And it is used to measure the time lapses in the kernel code. I m seeing a case where, actualy time spent in some module using giffies is

Re: What is asmlinkage ?

2013-01-04 Thread anish singh
On Fri, Jan 4, 2013 at 3:41 PM, Rajat Sharma fs.ra...@gmail.com wrote: Is this correct for all architectures? I guess not, asmlinkage is undefined for arm, so I assume this mechanism is not there for arm. then how do they do it? On Fri, Jan 4, 2013 at 2:24 PM, 卜弋天 bu...@live.cn wrote:

Re: how to look for source code in kernel

2012-12-27 Thread anish singh
On Fri, Dec 28, 2012 at 1:23 AM, Henrique Rodrigues henriquesil...@gmail.com wrote: http://lxr.linux.no/ is a really good linux cross referencing website for code reference. On Thu, Dec 27, 2012 at 10:40 AM, Jonathan Neuschäfer j.neuschae...@gmx.net wrote: On Thu, Dec 27, 2012 at 11:01:52PM

Re: how to look for source code in kernel

2012-12-27 Thread anish singh
On Fri, Dec 28, 2012 at 10:42 AM, amit mehta gmate.a...@gmail.com wrote: On Thu, Dec 27, 2012 at 11:01:52PM +0530, kishore kumar wrote: can anybody tell me how to look into source code, as most are hidden in kernel. You can find the Linux source code at http://kernel.org/ . for browsing

Re: [PATCH] gpio: export 'debounce' attribute if supported by the gpio chip

2012-12-10 Thread anish singh
On Mon, Dec 10, 2012 at 10:48 AM, Guenter Roeck groeck-...@sbcglobal.net wrote: On Mon, Dec 10, 2012 at 11:04:09AM +0100, Linus Walleij wrote: On Fri, Dec 7, 2012 at 5:49 PM, Alan Cox a...@lxorguk.ukuu.org.uk wrote: I could imagine declaring the activity request buttons to be input, but

Re: [PATCH] extcon : callback function to read cable property

2012-11-20 Thread anish singh
On Tue, Nov 20, 2012 at 1:24 AM, Anton Vorontsov cbouatmai...@gmail.com wrote: On Tue, Nov 20, 2012 at 09:14:41AM +, Tc, Jenny wrote: [...] For example, Firstly, the power_supply charging framework check state of charger cable whether attached or detached cable. Second, when

Re: [PATCH] extcon : callback function to read cable property

2012-11-15 Thread anish singh
On Wed, Nov 14, 2012 at 8:05 PM, Tc, Jenny jenny...@intel.com wrote: I think that the role of extcon subsystem notify changed state(attached/detached) of cable to notifiee, but if you want to add property feature of cable, you should solve ambiguous issues. First, This patch

Re: [PATCHv4 1/4] modem_shm: Add Modem Access Framework

2012-10-02 Thread anish singh
On Wed, Oct 3, 2012 at 9:24 AM, Arun MURTHY arun.mur...@stericsson.com wrote: On Mon, Oct 01, 2012 at 07:30:38AM +0200, Arun MURTHY wrote: On Fri, Sep 28, 2012 at 01:35:01PM +0530, Arun Murthy wrote: +#include linux/module.h +#include linux/slab.h +#include linux/err.h

Re: [PATCHv4 1/4] modem_shm: Add Modem Access Framework

2012-10-01 Thread anish singh
On Mon, Oct 1, 2012 at 11:00 AM, Arun MURTHY arun.mur...@stericsson.com wrote: On Fri, Sep 28, 2012 at 01:35:01PM +0530, Arun Murthy wrote: +#include linux/module.h +#include linux/slab.h +#include linux/err.h +#include linux/printk.h +#include linux/modem_shm/modem.h + +static

Re: [PATCHv4 1/4] modem_shm: Add Modem Access Framework

2012-10-01 Thread anish singh
On Mon, Oct 1, 2012 at 12:27 PM, Arun MURTHY arun.mur...@stericsson.com wrote: On Mon, Oct 1, 2012 at 11:00 AM, Arun MURTHY arun.mur...@stericsson.com wrote: On Fri, Sep 28, 2012 at 01:35:01PM +0530, Arun Murthy wrote: +#include linux/module.h +#include linux/slab.h +#include

Re: [PATCH] driver core: fix possible missing of device probe

2012-09-28 Thread anish singh
On Fri, Sep 28, 2012 at 2:16 PM, Russell King - ARM Linux li...@arm.linux.org.uk wrote: On Fri, Sep 28, 2012 at 09:01:13AM +0530, anish singh wrote: Hello Ming, Though I am not an expert in this driver core area but I have been following this fix.So have some queries below: On Fri, Sep 28

Re: [PATCH] extcon: Fix return value in extcon_register_interest()

2012-09-25 Thread anish singh
On Tue, Sep 25, 2012 at 12:28 PM, Sachin Kamat sachin.ka...@linaro.org wrote: Return the value obtained from extcon_find_cable_index() instead of -ENODEV. Fixes the following smatch info: drivers/extcon/extcon-class.c:478 extcon_register_interest() info: why not propagate 'obj-cable_index'

Re: [PATCH] extcon: Fix return value in extcon_register_interest()

2012-09-25 Thread anish singh
On Tue, Sep 25, 2012 at 2:50 PM, Sachin Kamat sachin.ka...@linaro.org wrote: On 25 September 2012 14:45, anish singh anish198519851...@gmail.com wrote: On Tue, Sep 25, 2012 at 12:28 PM, Sachin Kamat sachin.ka...@linaro.org wrote: Return the value obtained from extcon_find_cable_index

Re: Work queue questions

2012-09-24 Thread anish singh
On Tue, Sep 25, 2012 at 1:38 AM, Tejun Heo t...@kernel.org wrote: Hello, On Mon, Sep 24, 2012 at 08:57:40PM +0100, Deepawali Verma wrote: May be I misunderstood, I read in the documentation about max_active. In this case, max_active is 1, but I created three workqueues, do you I see. Why

Re: Work queue questions

2012-09-22 Thread anish singh
On Sat, Sep 22, 2012 at 10:57 AM, Daniel Taylor daniel.tay...@wdc.com wrote: -Original Message- From: linux-kernel-ow...@vger.kernel.org [mailto:linux-kernel-ow...@vger.kernel.org] On Behalf Of anish singh Sent: Friday, September 21, 2012 9:25 PM To: Deepawali Verma Cc: Tejun Heo

Re: Work queue questions

2012-09-21 Thread anish singh
On Sat, Sep 22, 2012 at 1:05 AM, Deepawali Verma dverma...@gmail.com wrote: Hi Tajun, These three tasks are writing the three chunks of data in parallel. I am not getting improvement here otherwise what is difference between writing these chunks one by one in single thread instead of trying

Re: [PATCH] genirq: Add the IRQS_ONESHOT support for edge interrupt

2012-09-18 Thread anish singh
-thread_active be desc-threads_active ?? -Original Message- From: anish singh [mailto:anish198519851...@gmail.com] Sent: Tuesday, September 18, 2012 12:31 PM To: Liu, Chuansheng Subject: Re: [PATCH] genirq: Add the IRQS_ONESHOT support for edge interrupt On Tue, Sep 18, 2012 at 6:24

Re: [PATCH] genirq: Add the IRQS_ONESHOT support for edge interrupt

2012-09-18 Thread anish singh
On Tue, Sep 18, 2012 at 12:51 PM, Liu, Chuansheng chuansheng@intel.com wrote: This comment might help. kernel/irq/manage.c } else if (new-handler == irq_default_primary_handler) { /* * The interrupt was requested with handler = NULL, so * we use the

Re: [PATCH] [V1]power: battery: Generic battery driver using IIO

2012-09-16 Thread anish singh
Hello Lars, Thanks for the review.All of you comments are valid but i just have a small question w.r.t one of your comments. Inline below. On Sun, Sep 16, 2012 at 9:11 PM, Lars-Peter Clausen l...@metafoo.de wrote: On 09/16/2012 09:14 AM, anish kumar wrote: From: anish kumar

Re: [PATCH] [RFC]power: battery: Generic battery driver using IIO

2012-09-13 Thread anish singh
On Thu, Sep 13, 2012 at 5:56 PM, Jonathan Cameron ji...@kernel.org wrote: Thanks Lars, all of your comments are valid and I will accordingly update. I am waiting for some more review comments if there is any and will send the updated code. Beware of that strategy as I for one am guilty of

Re: [PATCH] power: battery: Generic battery driver using IIO

2012-09-13 Thread anish singh
On Fri, Sep 14, 2012 at 5:16 AM, Anton Vorontsov cbouatmai...@gmail.com wrote: On Thu, Sep 13, 2012 at 09:46:32PM +0530, anish kumar wrote: From: anish kumar anish198519851...@gmail.com In this version: Addressed concerns raised by lars: a. made the adc_bat per device. b. get the IIO

Re: [PATCH] [RFC]power: battery: Generic battery driver using IIO

2012-09-12 Thread anish singh
On Tue, Sep 11, 2012 at 3:29 PM, Lars-Peter Clausen l...@metafoo.de wrote: On 09/10/2012 05:40 PM, anish kumar wrote: From: anish kumar anish198519851...@gmail.com This is the cleaned up code after the valuable inputs from the Jonathan, Lars and Anton. I have tried to accomodate all the

Re: Re: [PATCH -next] extcon: extcon-arizona depends on INPUT

2012-09-05 Thread anish singh
On Thu, Sep 6, 2012 at 5:36 AM, Greg KH gre...@linuxfoundation.org wrote: On Wed, Sep 05, 2012 at 11:47:31PM +, MyungJoo Ham wrote: On Wed, Sep 05, 2012 at 11:28:03AM +0800, Mark Brown wrote: On Tue, Sep 04, 2012 at 04:51:00PM -0700, Randy Dunlap wrote: This build error still

Re: [PATCH] [RFC]Extcon: Change to add standard cable names in individual drivers.

2012-08-27 Thread anish singh
Hi, Here is the requirement: driver has to give the core the list of standard cable names(exported by the core) and can also specify the custom cable names. Something as this : char *cable_names_supported = { [0] = EXTCON_USB, /*defined in extcon core */ [1] =

Re: [PATCH] [PATCH V6]Extcon: adc_jack: adc-jack driver to support 3.5 pi or simliar devices

2012-08-16 Thread anish singh
On Thu, Aug 16, 2012 at 11:10 PM, Greg KH gre...@linuxfoundation.org wrote: On Fri, Aug 10, 2012 at 12:29:43AM -0700, anish kumar wrote: From: anish kumar anish198519851...@gmail.com External connector devices that decides connection information based on ADC values may use adc-jack device