Re: [PATCH] pinctrl: sun4i: GPIOs configured as irq must be set to input before reading

2015-03-18 Thread Linus Walleij
On Sun, Mar 8, 2015 at 10:13 PM, Hans de Goede wrote: > On sun4i-a10, when GPIOs are configured as external interrupt the value for > them in the data register does not seem to get updated, so set their mux to > input (and restore afterwards) when reading the pin. > > Missed edges seem to be buff

Re: [PATCH] pinctrl: sun4i: GPIOs configured as irq must be set to input before reading

2015-03-11 Thread Maxime Ripard
On Sun, Mar 08, 2015 at 10:13:57PM +0100, Hans de Goede wrote: > On sun4i-a10, when GPIOs are configured as external interrupt the value for > them in the data register does not seem to get updated, so set their mux to > input (and restore afterwards) when reading the pin. > > Missed edges seem to

[PATCH] pinctrl: sun4i: GPIOs configured as irq must be set to input before reading

2015-03-08 Thread Hans de Goede
On sun4i-a10, when GPIOs are configured as external interrupt the value for them in the data register does not seem to get updated, so set their mux to input (and restore afterwards) when reading the pin. Missed edges seem to be buffered, so this does not introduce a race condition. I've also tes