[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <683567.34621.qm@web180314.mail.gq1.yahoo.com>
Date: Fri, 25 Jun 2010 00:19:41 -0700 (PDT)
From: David Brownell <david-b@...bell.net>
To: Jamie Lokier <jamie@...reable.org>,
Ryan Mallon <ryan@...ewatersys.com>
Cc: David Brownell <dbrownell@...rs.sourceforge.net>, gregkh@...e.de,
linux kernel <linux-kernel@...r.kernel.org>,
ext-jani.1.nikula@...ia.com,
Uwe Kleine-König
<u.kleine-koenig@...gutronix.de>,
Andrew Morton <akpm@...ux-foundation.org>,
linux-arm-kernel <linux-arm-kernel@...ts.infradead.org>
Subject: Re: [RFC PATCH] Rework gpio cansleep (was Re: gpiolib and sleeping gpios)
--- On Wed, 6/23/10, Ryan Mallon <ryan@...ewatersys.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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists