Subject: [PATCH 1/1] gpio/at91: auto request and configure the pio as input when the interrupt is used via DT

From: [email-masked] (Jean-Christophe PLAGNIOL-VILLARD)
Date: Wed, 24 Oct 2012 11:21:47 +0200

On 09:44 Wed 24 Oct     , Linus Walleij wrote:
> On Tue, Oct 23, 2012 at 3:56 PM, Jean-Christophe PLAGNIOL-VILLARD
> <[email-masked]> 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 <[email-masked]>
> > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email-masked]>
> 
> Looks OK to me: do you want me to just apply it on my AT91 branch
> on the pinctrl tree?
if 3.8 I prefer via at91 if you don't mind

Best Regards,
J.