On Tue, Nov 19, 2013 at 09:24:31PM +0100, Linus Walleij wrote:
On Tue, Nov 19, 2013 at 4:17 PM, Dmitry Eremin-Solenikov
[off-list ref] wrote:
quoted
On 11/19/2013 05:00 PM, Linus Walleij wrote:
quoted
quoted
And that happens before the GPIO driver gets registered -> crash.
That is not the issue. The real issue is h3xxx using those gpio's without
previously calling gpio_request.
Really? But that wasn't done before this patch either.
It is basically OK to use the gpio_* functions before or
without requesting the GPIOs, it won't look nice but it
works.
Using gpio_* functions without first having the GPIO requested causes
a complaint at boot time... so it's really undesirable to do this.
Also note that we _do_ have sa11x0 platforms which request their GPIOs
in their arch_initcall callback, so the sa11x0 GPIO driver better be
around at that point otherwise things *will* fail.
I suspect that means the SA11x0 GPIO driver must be initialised early.