[PATCH] mfd: stmpe: Pull IRQ GPIO number from DT during DT-based probe

Viresh Kumar viresh.kumar at linaro.org
Tue Jan 8 05:47:46 EST 2013


On 8 January 2013 15:18, Marek Vasut <marex at denx.de> 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 :)



More information about the linux-arm-kernel mailing list