# Re: \[PATCH RESEND v3\] gpio: lib-sysfs: Add 'wakeup' attribute

- From: Linus Walleij \<hidden\>
- Date: 2015-01-09 09:32:38 
- List: linux-api
- Page: https://ratatoskr.run/linux-api/2015/01/4405971
- Thread: https://ratatoskr.run/linux-api/2015/01/4402991/t.md

```text
On Mon, Jan 5, 2015 at 7:16 PM, Soren Brinkmann
[ref] 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 <redacted>
> Reviewed-by: Alexandre Courbot <redacted>
> ---
> v3:
>  - add documentation
> v2:
>  - fix error path to unlock mutex before return

Finally applied for v3.20.

Sorry for being a bit conservative and picky at times...

Yours,
Linus Walleij
```
