Re: [PATCH] gpio: pcf857x: restore the initial line state of all pcf lines

2015-03-25 Thread Linus Walleij
On Wed, Mar 18, 2015 at 2:21 PM, Kishon Vijay Abraham I wrote: >[Me] >> Specify exactly what stuff may happen after the reboot notifier. > > okay, it's assumed the device may be used (active) till the shutdown handler > of that particular device is called. > > In this particular case we are restor

Re: [PATCH] gpio: pcf857x: restore the initial line state of all pcf lines

2015-03-18 Thread Kishon Vijay Abraham I
Hi, On Wednesday 18 March 2015 05:51 PM, Linus Walleij wrote: On Mon, Mar 16, 2015 at 9:46 AM, Kishon Vijay Abraham I wrote: On Wednesday 14 January 2015 05:28 PM, Linus Walleij wrote: #include static int foo_reboot_handler(struct notifier_block *this, un

Re: [PATCH] gpio: pcf857x: restore the initial line state of all pcf lines

2015-03-18 Thread Linus Walleij
On Mon, Mar 16, 2015 at 9:46 AM, Kishon Vijay Abraham I wrote: > On Wednesday 14 January 2015 05:28 PM, Linus Walleij wrote: >> #include >> >> static int foo_reboot_handler(struct notifier_block *this, >> unsigned long code, >> vo

Re: [PATCH] gpio: pcf857x: restore the initial line state of all pcf lines

2015-03-16 Thread Kishon Vijay Abraham I
Hi, On Wednesday 14 January 2015 05:28 PM, Linus Walleij wrote: On Mon, Jan 5, 2015 at 7:26 AM, Kishon Vijay Abraham I wrote: On Thursday 18 December 2014 07:41 PM, Nishanth Menon wrote: On 12/18/2014 12:18 AM, Kishon Vijay Abraham I wrote: On Tuesday 16 December 2014 02:20 AM, Nishanth Me

Re: [PATCH] gpio: pcf857x: restore the initial line state of all pcf lines

2015-01-14 Thread Linus Walleij
On Mon, Jan 5, 2015 at 7:26 AM, Kishon Vijay Abraham I wrote: > On Thursday 18 December 2014 07:41 PM, Nishanth Menon wrote: >> On 12/18/2014 12:18 AM, Kishon Vijay Abraham I wrote: >>> >>> >>> On Tuesday 16 December 2014 02:20 AM, Nishanth Menon wrote: On 12/12/2014 02:06 AM, Kishon Vijay Ab

Re: [PATCH] gpio: pcf857x: restore the initial line state of all pcf lines

2015-01-04 Thread Kishon Vijay Abraham I
Hi, On Thursday 18 December 2014 07:41 PM, Nishanth Menon wrote: > On 12/18/2014 12:18 AM, Kishon Vijay Abraham I wrote: >> >> >> On Tuesday 16 December 2014 02:20 AM, Nishanth Menon wrote: >>> On 12/12/2014 02:06 AM, Kishon Vijay Abraham I wrote: The reset values for all the PCF lines are hi

Re: [PATCH] gpio: pcf857x: restore the initial line state of all pcf lines

2014-12-18 Thread Nishanth Menon
On 12/18/2014 12:18 AM, Kishon Vijay Abraham I wrote: > > > On Tuesday 16 December 2014 02:20 AM, Nishanth Menon wrote: >> On 12/12/2014 02:06 AM, Kishon Vijay Abraham I wrote: >>> The reset values for all the PCF lines are high and hence on shutdown >>> we should drive all the lines high in orde

Re: [PATCH] gpio: pcf857x: restore the initial line state of all pcf lines

2014-12-17 Thread Kishon Vijay Abraham I
On Tuesday 16 December 2014 02:20 AM, Nishanth Menon wrote: > On 12/12/2014 02:06 AM, Kishon Vijay Abraham I wrote: >> The reset values for all the PCF lines are high and hence on shutdown >> we should drive all the lines high in order to bring it to the reset state. >> >> This is actually requir

Re: [PATCH] gpio: pcf857x: restore the initial line state of all pcf lines

2014-12-15 Thread Nishanth Menon
On 12/12/2014 02:06 AM, Kishon Vijay Abraham I wrote: > The reset values for all the PCF lines are high and hence on shutdown > we should drive all the lines high in order to bring it to the reset state. > > This is actually required since pcf doesn't have a reset line and even after > warm reset

[PATCH] gpio: pcf857x: restore the initial line state of all pcf lines

2014-12-12 Thread Kishon Vijay Abraham I
The reset values for all the PCF lines are high and hence on shutdown we should drive all the lines high in order to bring it to the reset state. This is actually required since pcf doesn't have a reset line and even after warm reset (by invoking "reboot" in prompt) the pcf lines maintains it's pr