tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Changing the gpio(4) API/ABI

Am 27.09.11 02:44, schrieb Matthew Mondor:
> On Fri, 23 Sep 2011 12:38:13 +0200
> Marc Balmer <> wrote:
>> With gpio(4) we still carry an old API with us, which I want to remove.  
>> While working on it, I will also introduce a third locator to device drivers 
>> that attach to gpio pins, flags.  It will be needed for e.g. gpioiic(4) to 
>> invert the SDA/SCL pin numbers.
>> WIll documenting the changes be enough?
> Perhaps only one other question: Is there any advantage to keep
> compatibility with OpenBSD (from which gpio(4) was intially ported);
> are there tools from OpenBSD than can be used because of this
> compatibility?  Or has gpio(4) stalled on OpenBSD?

There is no advantage to keep compatability with OpenBSD, our gpio(4) is
-current is much advanced, and yes, it has stalled on OpenBSD.

> Another option would be to allow a full redesign under a new device
> name/copy, if that's a concern.  Personally, although I've seen gpio in
> the releases I used since quite a while, I've never used it, and I
> doubt that I used any code relying on it...

I don't think that is needed.  The current design is ok, but lacks some
much wanted features, like event capabilities (interrupting pins) etc.

Home | Main Index | Thread Index | Old Index