[PATCH 1/2] gpio: dwapb: Use human understandable gpio numbering.
Richard Cochran
richardcochran at gmail.com
Thu Jul 2 07:20:59 PDT 2015
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
More information about the linux-arm-kernel
mailing list