linux-sg2042/drivers/pinctrl/sunxi
Hans de Goede ef6d24cc7f pinctrl: sun4i: GPIOs configured as irq must be set to input before reading
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 tested this on sun5i-a13 and sun7i-a20 and those do not seem to
be affected, the input value representation in the data register does seem
to correctly get updated to the actual pin value while in irq mode there.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2015-03-18 10:56:46 +01:00
..
Kconfig pinctrl: sun6i: Add A31s pinctrl support 2015-01-14 14:21:52 +01:00
Makefile pinctrl: sun6i: Add A31s pinctrl support 2015-01-14 14:21:52 +01:00
pinctrl-sun4i-a10.c pinctrl: sun4i: GPIOs configured as irq must be set to input before reading 2015-03-18 10:56:46 +01:00
pinctrl-sun5i-a10s.c pinctrl: sunxi: drop owner assignment from platform_drivers 2014-10-20 16:21:25 +02:00
pinctrl-sun5i-a13.c pinctrl: sunxi: drop owner assignment from platform_drivers 2014-10-20 16:21:25 +02:00
pinctrl-sun6i-a31-r.c pinctrl: sunxi: drop owner assignment from platform_drivers 2014-10-20 16:21:25 +02:00
pinctrl-sun6i-a31.c pinctrl: sun6i: Add some missing functions 2015-01-14 14:21:52 +01:00
pinctrl-sun6i-a31s.c pinctrl: sun6i: Add A31s pinctrl support 2015-01-14 14:21:52 +01:00
pinctrl-sun7i-a20.c pinctrl: sunxi: drop owner assignment from platform_drivers 2014-10-20 16:21:25 +02:00
pinctrl-sun8i-a23-r.c pinctrl: sunxi: drop owner assignment from platform_drivers 2014-10-20 16:21:25 +02:00
pinctrl-sun8i-a23.c pinctrl: sunxi: drop owner assignment from platform_drivers 2014-10-20 16:21:25 +02:00
pinctrl-sun9i-a80.c pinctrl: sunxi: Add A80 pinctrl muxing options 2014-10-30 15:56:16 +01:00
pinctrl-sunxi.c pinctrl: sun4i: GPIOs configured as irq must be set to input before reading 2015-03-18 10:56:46 +01:00
pinctrl-sunxi.h pinctrl: sun4i: GPIOs configured as irq must be set to input before reading 2015-03-18 10:56:46 +01:00