Thread (28 messages) 28 messages, 4 authors, 2013-11-22

[PATCH 0/9] ARM: sa1100: Rework IRQ handling

From: Russell King - ARM Linux <hidden>
Date: 2013-11-20 00:20:52
Also in: linux-gpio

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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help