[PATCH 1/1] gpio/at91: auto request and configure the pio as input when the interrupt is used via DT
Linus Walleij
linus.walleij at linaro.org
Wed Oct 24 03:44:08 EDT 2012
On Tue, Oct 23, 2012 at 3:56 PM, Jean-Christophe PLAGNIOL-VILLARD
<plagnioj at jcrosoft.com> wrote:
> If we do this
>
> interrupt-parent = <&pioA>;
> interrupts = <7 0x0>;
>
> The current core map the irq correctly but the gpio is not configured as input.
> The pinctrl configure the pin as gpio with the correct mux parameter but is
> not responsible to configure it as input.
>
> So do it during the xlate
>
> Cc: Linus Walleij <linus.walleij at linaro.org>
> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
Looks OK to me: do you want me to just apply it on my AT91 branch
on the pinctrl tree?
Yours,
Linus Walleij
More information about the linux-arm-kernel
mailing list