From: Jordan Crouse <jordan.crouse@amd.com>
To: linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/4 resend] [x86] Add generic GPIO support to x86
Date: Fri, 19 Oct 2007 21:32:08 +0000 (UTC) [thread overview]
Message-ID: <ffb7oo$k26$1@ger.gmane.org> (raw)
In-Reply-To: 200710191401.56916.florian.fainelli@telecomint.eu
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
next prev parent reply other threads:[~2007-10-19 22:55 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-18 13:51 [PATCH 1/4 resend] [x86] Add generic GPIO support to x86 Florian Fainelli
2007-10-18 21:38 ` Andres Salomon
2007-10-19 12:01 ` Florian Fainelli
2007-10-19 21:32 ` Jordan Crouse [this message]
2007-10-21 16:06 ` Haavard Skinnemoen
2007-10-22 19:18 ` Andres Salomon
2007-10-22 19:59 ` Florian Fainelli
2007-10-25 8:18 ` Thomas Gleixner
2007-10-25 12:30 ` Florian Fainelli
2007-10-25 15:24 ` Thomas Gleixner
2008-02-13 22:02 ` Andrew Morton
2008-02-13 23:25 ` David Brownell
2008-02-14 1:55 ` David Brownell
2008-02-22 23:56 ` Anton Vorontsov
2008-02-23 0:51 ` David Brownell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='ffb7oo$k26$1@ger.gmane.org' \
--to=jordan.crouse@amd.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox