linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] gpio: f7188x: set can_sleep attribute
@ 2014-01-03 15:04 Simon Guinot
  2014-01-07 18:02 ` Linus Walleij
  0 siblings, 1 reply; 2+ messages in thread
From: Simon Guinot @ 2014-01-03 15:04 UTC (permalink / raw)
  To: Linus Walleij, Grant Likely; +Cc: linux-gpio, Vincent Donnefort, Simon Guinot

Since request_muxed_region() is used to synchronize access on the
Super-I/O controller, then the can_sleep attribute must be set for
the f7188x GPIO chips.

Signed-off-by: Simon Guinot <simon.guinot@sequanux.org>
---
Changes since v1: initialize can_sleep with a boolean

 drivers/gpio/gpio-f7188x.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpio/gpio-f7188x.c b/drivers/gpio/gpio-f7188x.c
index 9cb8320e1181..8f73ee093739 100644
--- a/drivers/gpio/gpio-f7188x.c
+++ b/drivers/gpio/gpio-f7188x.c
@@ -135,6 +135,7 @@ static void f7188x_gpio_set(struct gpio_chip *chip, unsigned offset, int value);
 			.set              = f7188x_gpio_set,		\
 			.base             = _base,			\
 			.ngpio            = _ngpio,			\
+			.can_sleep        = true,			\
 		},							\
 		.regbase = _regbase,					\
 	}
-- 
1.8.5.2


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

* Re: [PATCH v2] gpio: f7188x: set can_sleep attribute
  2014-01-03 15:04 [PATCH v2] gpio: f7188x: set can_sleep attribute Simon Guinot
@ 2014-01-07 18:02 ` Linus Walleij
  0 siblings, 0 replies; 2+ messages in thread
From: Linus Walleij @ 2014-01-07 18:02 UTC (permalink / raw)
  To: Simon Guinot; +Cc: Grant Likely, linux-gpio@vger.kernel.org, Vincent Donnefort

On Fri, Jan 3, 2014 at 4:04 PM, Simon Guinot <simon.guinot@sequanux.org> wrote:

> Since request_muxed_region() is used to synchronize access on the
> Super-I/O controller, then the can_sleep attribute must be set for
> the f7188x GPIO chips.
>
> Signed-off-by: Simon Guinot <simon.guinot@sequanux.org>
> ---
> Changes since v1: initialize can_sleep with a boolean

Patch applied.

Yours,
Linus Walleij

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

end of thread, other threads:[~2014-01-07 18:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-03 15:04 [PATCH v2] gpio: f7188x: set can_sleep attribute Simon Guinot
2014-01-07 18:02 ` 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).