Re: [PATCH 01/11] pinctrl: sunxi: create irq/pin mapping during init

From
Linus Walleij <hidden>
Date
2014-05-27 14:11:09
Also in
linux-arm-kernel, linux-mmc, linux-wireless
On Mon, May 26, 2014 at 9:47 AM, Hans de Goede [off-list ref] wrote:
From: Chen-Yu Tsai <redacted>

The irq/pin mapping is used to lookup the pin to mux to the irq
function when the irq is enabled. It is created when gpio_to_irq
is called. Creating the mapping during init allows us to map the
interrupts directly from the device tree.

Signed-off-by: Chen-Yu Tsai <redacted>
Signed-off-by: Hans de Goede <redacted>
This is exactly correct. Patch applied.

I tried to hack the sunxi driver to even use the gpiolib
irqchip helpers but exactly this complex map thing in
->irq_array[] git me stuck. If any of you guys could be so
nice to take a stab at this (compare to other commits
converting drivers to use gpiolibs irqchip helpers) then
I'd be very happy.

Yours,
Linus Walleij
Thread (1 message) 1 message, 1 author, last reply 2014-05-27
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help