Thread (11 messages) flat view 11 messages, 4 authors, 2015-07-16

[PATCH 1/2] gpio: dwapb: Use human understandable gpio numbering.

From: richardcochran@gmail.com (Richard Cochran)
Date: 2015-07-02 14:20:59
Also in: linux-devicetree, linux-gpio

On Thu, Jul 02, 2015 at 08:05:26AM +0100, Michael van der Westhuizen wrote:
Ultimately, the numbering is inconsequential to users in kernel-space when DT is
in use.  It?s the userland users we?re trying to help.
Yes.  Lets help the users!
 
In my case, I have quite a lot of vendor-supplied code that needs the numbers to
be stable and backward compatible.  This quickly devolves into a discussion of
GPIOs in sysfs as an ABI, which is not a discussion I want to have :)
In the present state, the gpio numbers on the Altera socfpga change
with changing kernel releases.  Not only does that suck, but it also
proves that the gpio numbering is not any kind of ABI.  Rather, it is
some kind of oversight.

Anyhow, the whole point is, when the data sheet says that the SoC has
GPIO0 to GPION, then those numbers should be exposed to user space.

Thanks,
Richard
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help