From mboxrd@z Thu Jan 1 00:00:00 1970 From: plagnioj@jcrosoft.com (Jean-Christophe PLAGNIOL-VILLARD) Date: Wed, 24 Oct 2012 11:21:47 +0200 Subject: [PATCH 1/1] gpio/at91: auto request and configure the pio as input when the interrupt is used via DT In-Reply-To: References: <1351000601-3141-1-git-send-email-plagnioj@jcrosoft.com> Message-ID: <20121024092147.GG18964@game.jcrosoft.org> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 09:44 Wed 24 Oct , Linus Walleij wrote: > On Tue, Oct 23, 2012 at 3:56 PM, Jean-Christophe PLAGNIOL-VILLARD > 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 > > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD > > 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.