Re: [PATCH v4] gpio: lib-sysfs: Add 'wakeup' attribute

2015-02-05 Thread Johan Hovold
On Wed, Feb 04, 2015 at 10:27:15AM -0800, Sören Brinkmann wrote: > On Wed, 2015-02-04 at 10:19AM +0100, Linus Walleij wrote: > > What needs to happen (IMHO) is to make gpio_chips properly obeying > > the device model, and then add the attributes for fiddling around with > > GPIOs to either the

Re: [PATCH v4] gpio: lib-sysfs: Add 'wakeup' attribute

2015-02-05 Thread Johan Hovold
On Wed, Feb 04, 2015 at 10:27:15AM -0800, Sören Brinkmann wrote: On Wed, 2015-02-04 at 10:19AM +0100, Linus Walleij wrote: What needs to happen (IMHO) is to make gpio_chips properly obeying the device model, and then add the attributes for fiddling around with GPIOs to either the *real*

Re: [PATCH v4] gpio: lib-sysfs: Add 'wakeup' attribute

2015-02-04 Thread Sören Brinkmann
On Wed, 2015-02-04 at 10:19AM +0100, Linus Walleij wrote: > On Thu, Jan 29, 2015 at 6:23 PM, Sören Brinkmann > wrote: > > On Mon, 2015-01-19 at 09:54AM +0100, Linus Walleij wrote: > >> On Mon, Jan 19, 2015 at 5:20 AM, Alexandre Courbot > >> wrote: > >> > On Sat, Jan 17, 2015 at 1:49 AM, Sören

Re: [PATCH v4] gpio: lib-sysfs: Add 'wakeup' attribute

2015-02-04 Thread Linus Walleij
On Thu, Jan 29, 2015 at 6:23 PM, Sören Brinkmann wrote: > On Mon, 2015-01-19 at 09:54AM +0100, Linus Walleij wrote: >> On Mon, Jan 19, 2015 at 5:20 AM, Alexandre Courbot wrote: >> > On Sat, Jan 17, 2015 at 1:49 AM, Sören Brinkmann >> > wrote: >> >> On Fri, 2015-01-16 at 12:11PM +0100, Johan

Re: [PATCH v4] gpio: lib-sysfs: Add 'wakeup' attribute

2015-02-04 Thread Linus Walleij
On Thu, Jan 29, 2015 at 6:23 PM, Sören Brinkmann soren.brinkm...@xilinx.com wrote: On Mon, 2015-01-19 at 09:54AM +0100, Linus Walleij wrote: On Mon, Jan 19, 2015 at 5:20 AM, Alexandre Courbot gnu...@gmail.com wrote: On Sat, Jan 17, 2015 at 1:49 AM, Sören Brinkmann soren.brinkm...@xilinx.com

Re: [PATCH v4] gpio: lib-sysfs: Add 'wakeup' attribute

2015-02-04 Thread Sören Brinkmann
On Wed, 2015-02-04 at 10:19AM +0100, Linus Walleij wrote: On Thu, Jan 29, 2015 at 6:23 PM, Sören Brinkmann soren.brinkm...@xilinx.com wrote: On Mon, 2015-01-19 at 09:54AM +0100, Linus Walleij wrote: On Mon, Jan 19, 2015 at 5:20 AM, Alexandre Courbot gnu...@gmail.com wrote: On Sat, Jan

Re: [PATCH v4] gpio: lib-sysfs: Add 'wakeup' attribute

2015-01-29 Thread Sören Brinkmann
Hi Linus, On Mon, 2015-01-19 at 09:54AM +0100, Linus Walleij wrote: > On Mon, Jan 19, 2015 at 5:20 AM, Alexandre Courbot wrote: > > On Sat, Jan 17, 2015 at 1:49 AM, Sören Brinkmann > > wrote: > >> On Fri, 2015-01-16 at 12:11PM +0100, Johan Hovold wrote: > > >>> Implementing proper wakeup

Re: [PATCH v4] gpio: lib-sysfs: Add 'wakeup' attribute

2015-01-29 Thread Sören Brinkmann
Hi Linus, On Mon, 2015-01-19 at 09:54AM +0100, Linus Walleij wrote: On Mon, Jan 19, 2015 at 5:20 AM, Alexandre Courbot gnu...@gmail.com wrote: On Sat, Jan 17, 2015 at 1:49 AM, Sören Brinkmann soren.brinkm...@xilinx.com wrote: On Fri, 2015-01-16 at 12:11PM +0100, Johan Hovold wrote:

Re: [PATCH v4] gpio: lib-sysfs: Add 'wakeup' attribute

2015-01-19 Thread Johan Hovold
On Fri, Jan 16, 2015 at 08:49:17AM -0800, Sören Brinkmann wrote: > On Fri, 2015-01-16 at 12:11PM +0100, Johan Hovold wrote: > > On Thu, Jan 15, 2015 at 11:49:49AM -0800, Soren Brinkmann wrote: > > > Add an attribute 'wakeup' to the GPIO sysfs interface which allows > > > marking/unmarking a GPIO

Re: [PATCH v4] gpio: lib-sysfs: Add 'wakeup' attribute

2015-01-19 Thread Linus Walleij
On Mon, Jan 19, 2015 at 5:20 AM, Alexandre Courbot wrote: > On Sat, Jan 17, 2015 at 1:49 AM, Sören Brinkmann > wrote: >> On Fri, 2015-01-16 at 12:11PM +0100, Johan Hovold wrote: >>> Implementing proper wakeup support for unclaimed GPIOs would take some >>> work (if at all desired), but that is

Re: [PATCH v4] gpio: lib-sysfs: Add 'wakeup' attribute

2015-01-19 Thread Linus Walleij
On Mon, Jan 19, 2015 at 5:20 AM, Alexandre Courbot gnu...@gmail.com wrote: On Sat, Jan 17, 2015 at 1:49 AM, Sören Brinkmann soren.brinkm...@xilinx.com wrote: On Fri, 2015-01-16 at 12:11PM +0100, Johan Hovold wrote: Implementing proper wakeup support for unclaimed GPIOs would take some work

Re: [PATCH v4] gpio: lib-sysfs: Add 'wakeup' attribute

2015-01-19 Thread Johan Hovold
On Fri, Jan 16, 2015 at 08:49:17AM -0800, Sören Brinkmann wrote: On Fri, 2015-01-16 at 12:11PM +0100, Johan Hovold wrote: On Thu, Jan 15, 2015 at 11:49:49AM -0800, Soren Brinkmann wrote: Add an attribute 'wakeup' to the GPIO sysfs interface which allows marking/unmarking a GPIO as wake

Re: [PATCH v4] gpio: lib-sysfs: Add 'wakeup' attribute

2015-01-18 Thread Alexandre Courbot
On Sat, Jan 17, 2015 at 1:49 AM, Sören Brinkmann wrote: > On Fri, 2015-01-16 at 12:11PM +0100, Johan Hovold wrote: >> On Thu, Jan 15, 2015 at 11:49:49AM -0800, Soren Brinkmann wrote: >> > Add an attribute 'wakeup' to the GPIO sysfs interface which allows >> > marking/unmarking a GPIO as wake IRQ.

Re: [PATCH v4] gpio: lib-sysfs: Add 'wakeup' attribute

2015-01-18 Thread Alexandre Courbot
On Sat, Jan 17, 2015 at 1:49 AM, Sören Brinkmann soren.brinkm...@xilinx.com wrote: On Fri, 2015-01-16 at 12:11PM +0100, Johan Hovold wrote: On Thu, Jan 15, 2015 at 11:49:49AM -0800, Soren Brinkmann wrote: Add an attribute 'wakeup' to the GPIO sysfs interface which allows marking/unmarking a

Re: [PATCH v4] gpio: lib-sysfs: Add 'wakeup' attribute

2015-01-16 Thread Sören Brinkmann
On Fri, 2015-01-16 at 12:11PM +0100, Johan Hovold wrote: > On Thu, Jan 15, 2015 at 11:49:49AM -0800, Soren Brinkmann wrote: > > Add an attribute 'wakeup' to the GPIO sysfs interface which allows > > marking/unmarking a GPIO as wake IRQ. > > The file 'wakeup' is created in each exported GPIOs

Re: [PATCH v4] gpio: lib-sysfs: Add 'wakeup' attribute

2015-01-16 Thread Johan Hovold
On Thu, Jan 15, 2015 at 11:49:49AM -0800, Soren Brinkmann wrote: > Add an attribute 'wakeup' to the GPIO sysfs interface which allows > marking/unmarking a GPIO as wake IRQ. > The file 'wakeup' is created in each exported GPIOs directory, if an IRQ > is associated with that GPIO and the irqchip

Re: [PATCH v4] gpio: lib-sysfs: Add 'wakeup' attribute

2015-01-16 Thread Sören Brinkmann
On Fri, 2015-01-16 at 12:11PM +0100, Johan Hovold wrote: On Thu, Jan 15, 2015 at 11:49:49AM -0800, Soren Brinkmann wrote: Add an attribute 'wakeup' to the GPIO sysfs interface which allows marking/unmarking a GPIO as wake IRQ. The file 'wakeup' is created in each exported GPIOs directory,

Re: [PATCH v4] gpio: lib-sysfs: Add 'wakeup' attribute

2015-01-16 Thread Johan Hovold
On Thu, Jan 15, 2015 at 11:49:49AM -0800, Soren Brinkmann wrote: Add an attribute 'wakeup' to the GPIO sysfs interface which allows marking/unmarking a GPIO as wake IRQ. The file 'wakeup' is created in each exported GPIOs directory, if an IRQ is associated with that GPIO and the irqchip

[PATCH v4] gpio: lib-sysfs: Add 'wakeup' attribute

2015-01-15 Thread Soren Brinkmann
Add an attribute 'wakeup' to the GPIO sysfs interface which allows marking/unmarking a GPIO as wake IRQ. The file 'wakeup' is created in each exported GPIOs directory, if an IRQ is associated with that GPIO and the irqchip implements set_wake(). Writing 'enabled' to that file will enable wake for

[PATCH v4] gpio: lib-sysfs: Add 'wakeup' attribute

2015-01-15 Thread Soren Brinkmann
Add an attribute 'wakeup' to the GPIO sysfs interface which allows marking/unmarking a GPIO as wake IRQ. The file 'wakeup' is created in each exported GPIOs directory, if an IRQ is associated with that GPIO and the irqchip implements set_wake(). Writing 'enabled' to that file will enable wake for