Thread (25 messages) 25 messages, 6 authors, 2016-11-25

Re: [PATCH] gpio: Add Tegra186 support

From: Linus Walleij <hidden>
Date: 2016-11-23 13:32:24
Also in: linux-tegra, lkml

On Tue, Nov 22, 2016 at 6:55 PM, Thierry Reding
[off-list ref] wrote:
From: Thierry Reding <redacted>

Tegra186 has two GPIO controllers that are largely register compatible
between one another but are completely different from the controller
found on earlier generations.

Signed-off-by: Thierry Reding <redacted>
I would prefer if you could try to convert this driver to use
CONFIG_GPIOLIB_IRQCHIP and install a chained interrupt
handler with gpiochip_irqchio_add() + gpiolib_set_chained_irqchip().
It would save us so much trouble and so much complicated
code to maintain for this custom irqdomain.

I suggest you to look into the mechanisms mentioned in my
previous mail for how to poke holes in the single linear
irqdomain used by this mechanism.

As it seems, you only have one parent interrupt with all
these IRQs cascading off it as far as I can tell.

Yours,
Linus Walleij
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help