OSDN Git Service

greybus: gpio: fix atomic sleep when using interrupts
authorJohan Hovold <johan@hovoldconsulting.com>
Tue, 26 May 2015 13:29:24 +0000 (15:29 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 26 May 2015 22:26:08 +0000 (15:26 -0700)
commit25f11ed965bb57b6e25d5464a8cd8b3657319056
tree82d821e34395505a47adbe972f47b21c248db12e
parent0cb918d72d8f76b1189a63cefedbc5cb4dad9d54
greybus: gpio: fix atomic sleep when using interrupts

The irq-chip callbacks are made in atomic context where we must not do
any synchronous greybus operations.

Fix the current gpio-interrupt implementation by using the bus-lock
functionality provided by the irq subsystem.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/gpio.c