[RFC PATCH] Rework gpio cansleep (was Re: gpiolib and sleeping gpios)
David Brownell
david-b at pacbell.net
Fri Jun 25 03:19:41 EDT 2010
--- On Wed, 6/23/10, Ryan Mallon <ryan at bluewatersys.com> wrote:
> >> In the current code, if a driver ever calls
> gpio_(set/get)_value on a
> >> gpio then you cannot pass a sleeping gpio to that
> driver. The request
> >> will succeed,
No it won't. Recall that those bit accessor
functions don't return success or failure!!
I'll be submitting a patch soonish, which is
a variant of Jani's patch to make the runtime
warnings trigger more consistently in the
face of such programming errors.
More information about the linux-arm-kernel
mailing list