[PATCH RFC] pinctrl: at91

Linus Walleij linus.walleij at linaro.org
Wed Jan 14 04:26:16 PST 2015


On Tue, Jan 6, 2015 at 10:37 AM, Ludovic Desroches
<ludovic.desroches at atmel.com> wrote:

> Usage of of_gpiochip_add() only solves my issue about gpio but not about
> pinctrl stuff, I still need a patch to manage the case when we have a gap if
> a gpio controller is not enabled to not break the pin naming, etc.

This has been the topic of many threads today.
I assume you are talking about keeping GPIO numbers
consistent.

- My suggestion is to add alias handling of the GPIO chips
  to the core so they can be probed in the right order.

- For consistency in sysfs use the "names" array in
  struct gpio_chip so you can search for a symbolic
  name in sysfs and don't have to rely on fragile stuff
  like GPIO numbers.

- Partake in the development of a new GPIO ABI
  that does not use the global GPIO numberspace.

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list