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

Linus Walleij linus.walleij at linaro.org
Thu Sep 4 09:29:32 PDT 2014

On Fri, Aug 29, 2014 at 7:58 PM, Soren Brinkmann
<soren.brinkmann at xilinx.com> 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 implements set_wake().
> Writing 'enabled' to that file will enable wake for that GPIO, while
> writing 'disabled' will disable wake.
> Reading that file will return either 'disabled' or 'enabled' depening on
> the currently set flag for the GPIO's IRQ.
> Signed-off-by: Soren Brinkmann <soren.brinkmann at xilinx.com>

While I do see the utility of this patch, any kind of interrupt and
related handling in userspace makes me super-stressed and

I need wide consent for this and please post this patch separately
from the zynq-related patches.

Linus Walleij

More information about the linux-arm-kernel mailing list