From: ludovic.desroches@atmel.com (Ludovic Desroches)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH RFC] pinctrl: at91
Date: Wed, 14 Jan 2015 16:03:39 +0100 [thread overview]
Message-ID: <20150114150339.GJ3625@ldesroches-Latitude-E6320> (raw)
In-Reply-To: <CACRpkda9wTPcRy6nRGP08rDpHV=tRyYVuD80TeO2zFGzX+aJcg@mail.gmail.com>
On Wed, Jan 14, 2015 at 01:26:16PM +0100, Linus Walleij wrote:
> On Tue, Jan 6, 2015 at 10:37 AM, Ludovic Desroches
> <ludovic.desroches@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.
We are already using aliases but it seems to not be the perfect
solution. For example, at the probe time, we wait for all gpio
controllers to be probed. We fill a gpio_chips table whose position in
this table is the alias id of the gpio controller. The at91 pinctrl driver
is waiting for 'maximum alias id' gpio controllers. What happens if
don't want to use a gpio controller and don't declare it or set it as
disabled?
>
> - 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.
I will have a look and bring my humble contribution if I can but I think
this topic is far away from the fix I am sending.
As you notice we can improve the at91 pinctrl driver, removing
pinctrl_add_gpio_range() and the range computation in the driver but it
won't solve my issue and it involves to add the gpio-range property to
all our devices so it breaks backward compatibility with old dtb.
>From my point of view, it is two distinct topics. One is a very
important fix because our SAMA5D4 device is not booting without it. The
other one is a proper way to manage gpio ranges but alone I don't think
it can solve my issue.
Regards
Ludovic
next prev parent reply other threads:[~2015-01-14 15:03 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-28 16:49 [PATCH 1/2] pinctrl: at91: allow disabled gpio controllers Ludovic Desroches
2014-11-28 16:49 ` [PATCH 2/2] ARM: at91/dt: sama5d4: add pioD controller Ludovic Desroches
2014-12-01 13:56 ` [PATCH 1/2] pinctrl: at91: allow disabled gpio controllers Linus Walleij
2014-12-01 14:39 ` Ludovic Desroches
2014-12-03 15:08 ` Ludovic Desroches
2014-12-05 10:17 ` Linus Walleij
2014-12-15 9:57 ` [PATCH RFC] pinctrl: at91 Ludovic Desroches
2014-12-19 14:41 ` Nicolas Ferre
2015-01-06 9:37 ` Ludovic Desroches
2015-01-14 12:26 ` Linus Walleij
2015-01-14 15:03 ` Ludovic Desroches [this message]
2015-01-19 10:12 ` Linus Walleij
2015-01-19 10:30 ` Ludovic Desroches
2015-01-19 10:54 ` Nicolas Ferre
2014-12-01 13:59 ` [PATCH 1/2] pinctrl: at91: allow disabled gpio controllers Nicolas Ferre
2014-12-02 14:50 ` Linus Walleij
2015-01-14 20:45 ` Jean-Christophe PLAGNIOL-VILLARD
2015-01-19 10:16 ` Linus Walleij
2015-01-19 10:34 ` Ludovic Desroches
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150114150339.GJ3625@ldesroches-Latitude-E6320 \
--to=ludovic.desroches@atmel.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox