linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] gpiolib: add another might_sleep
@ 2011-02-17 21:18 Uwe Kleine-König
  2011-08-29 19:01 ` Grant Likely
  0 siblings, 1 reply; 4+ messages in thread
From: Uwe Kleine-König @ 2011-02-17 21:18 UTC (permalink / raw)
  To: Grant Likely; +Cc: linux-kernel, kernel

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 drivers/gpio/gpiolib.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c
index 5fc5e2d..2c9f814 100644
--- a/drivers/gpio/gpiolib.c
+++ b/drivers/gpio/gpiolib.c
@@ -1207,6 +1207,7 @@ int gpio_request(unsigned gpio, const char *label)
 	if (chip->request) {
 		/* chip->request may sleep */
 		spin_unlock_irqrestore(&gpio_lock, flags);
+		might_sleep_if(chip->can_sleep);
 		status = chip->request(chip, gpio - chip->base);
 		spin_lock_irqsave(&gpio_lock, flags);
 
-- 
1.7.2.3


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-09-16 21:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-17 21:18 [PATCH] gpiolib: add another might_sleep Uwe Kleine-König
2011-08-29 19:01 ` Grant Likely
2012-09-13  8:36   ` Uwe Kleine-König
2012-09-16 21:55     ` Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).