[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <564390.64703.qm@web180307.mail.gq1.yahoo.com>
Date: Wed, 23 Jun 2010 05:40:01 -0700 (PDT)
From: David Brownell <david-b@...bell.net>
To: Jani Nikula <ext-jani.1.nikula@...ia.com>
Cc: Ryan Mallon <ryan@...ewatersys.com>,
linux kernel <linux-kernel@...r.kernel.org>,
linux-arm-kernel <linux-arm-kernel@...ts.infradead.org>,
Andrew Morton <akpm@...ux-foundation.org>,
David Brownell <dbrownell@...rs.sourceforge.net>,
"gregkh@...e.de" <gregkh@...e.de>,
Uwe Kleine-König
<u.kleine-koenig@...gutronix.de>
Subject: Re: gpiolib and sleeping gpios
--- On Wed, 6/23/10, Jani Nikula <ext-jani.1.nikula@...ia.com> wrote:
> Hi David -
>
> Part of the reason why such drivers haven't been fixed
> might be that the runtime warnings are only issued if DEBUG
> is defined in gpiolib.c:
A very good point. those cansleep() warnings
should perhaps be issued more consistently.
(Other warnings are safer to skip.)
I think the normal case for the GPIO calls is
the spinlock-safe code path, so I'd probably
ack a patch which incurs the extra costs only
for gpio chips that are already sleeping.
(The desire to trim costs for bitbanging is
not going to affect gpio chips accesssed over
I2C or SPI ... ;)
- Dave
--
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