From mboxrd@z Thu Jan 1 00:00:00 1970 From: lee.jones@linaro.org (Lee Jones) Date: Tue, 8 Jan 2013 11:11:04 +0000 Subject: [PATCH] mfd: stmpe: Pull IRQ GPIO number from DT during DT-based probe In-Reply-To: References: <1357568989-16237-1-git-send-email-marex@denx.de> <20130108094134.GA21994@gmail.com> <201301081044.14876.marex@denx.de> <201301081048.38149.marex@denx.de> Message-ID: <20130108111104.GF21994@gmail.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Tue, 08 Jan 2013, Viresh Kumar wrote: > On 8 January 2013 15:18, Marek Vasut wrote: > > Maybe I was too quick about understanding the issue at hand. So allow me a > > stupid question -- who's gonna configure the GPIO as input for it to work as IRQ > > GPIO? > > Hmm.. I tried a bit, but couldn't find any such call :( > Probably an assumption is taken here. GPIO pins which are going to be used as > interrupt lines, wouldn't be getting set in output mode at all. So, > once they are put > in input mode in beginning, nobody would change it ever. > > Much of gpio controllers configure gpio pins in input mode in their probe(). > > Maybe, there is something else :) Pinctrl? -- Lee Jones Linaro ST-Ericsson Landing Team Lead Linaro.org ? Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog