Re: [patch/rfc 2.6.19-rc5] arch-neutral GPIO calls

Bill Gatliff
2006-11-22T03:36:24Z

David:

David Brownell wrote:

>I know some folk say they "need" to remux after boot in non-exceptional cases,
>but the ability to do that (or not) really seems like a separate discussion.
>
>

I don't need to REmux, but I don't want to bother setting up the routing
manually at all. I think the GPIO management stuff can do it properly
on my behalf, given the information we have to acquire to get the GPIO
API to work in the first place.

Kind of like with request_irq() and enable_irq(). The driver is saying,
"I don't care what's actually behind this interrupt source X, I just
want it routed over to me". If we commit to hiding the muxing behind
the API, instead of defining a new, parallel API, we get that kind of
mentality for GPIO as well.

That's all. Go forth and code. :)

b.g.

--
Bill Gatliff
bgat@billgatliff.com