[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ffb7oo$k26$1@ger.gmane.org>
Date: Fri, 19 Oct 2007 21:32:08 +0000 (UTC)
From: Jordan Crouse <jordan.crouse@....com>
To: linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/4 resend] [x86] Add generic GPIO support to x86
On Fri, 19 Oct 2007 14:01:56 +0200, Florian Fainelli wrote:
> Hi Andres,
>
> Le jeudi 18 octobre 2007, Andres Salomon a écrit :
>> While I certainly would like to see a generic GPIO API, this one isn't
>> really useful for geode GPIOs. It would be nice to have one that did
>> work for us as well. Unfortunately, I haven't had the chance to give
>> much thought to this problem yet.
>
> This one was discussed mostly on the ARM mailing-list and finally made his way
> to the mainline kernel. Though it lacks some functions to change for instance
> a entire GPIO line and not a single bit, it is used on ARM and MIPS systems
> so I would conform with this one for now because it is used by at least two
> or more architectures.
Its reasonable to expect that the API will expand over time as it is
thrust into new situations. There is nothing wrong with the existing API,
it does an admirable job of simple GPIO frobbing. But on the Geode, GPIOs
can do much more then just simple input and output. We can cause events,
use input filtering for debouncing, set various drain options, and more.
And these are not bullet points from the datasheet that we want to
implement for completeness; these functions are actually being used right
now in the kernel on real hardware. Just because other architectures
haven't found a need to expand the API doesn't mean that we shouldn't
expand it now. And bear in mind, the Geode isn't unique - I'll bet beers
that there are MIPS and ARM architectures that have these features too,
and they would use the API if it existed.
Jordan
-
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