[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 08:01:46 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>

Applied to my at91 branch, thanks!

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list