]> Pileus Git - ~andy/linux/commit
pinctrl: sunxi: use chained_irq_{enter, exit} for GIC compatibility
authorChen-Yu Tsai <wens@csie.org>
Mon, 10 Feb 2014 16:22:37 +0000 (00:22 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 5 Mar 2014 01:57:10 +0000 (09:57 +0800)
commit905a5117e79367b7e58ae046d12ca9961f048c89
tree73c84d38e302e213b5005831d2138c7c3ffcda5e
parent0414855fdc4a40da05221fc6062cccbc0c30f169
pinctrl: sunxi: use chained_irq_{enter, exit} for GIC compatibility

On tha Allwinner A20 SoC, the external interrupts on the pin controller
device are connected to the GIC. Without chained_irq_{enter, exit},
external GPIO interrupts, such as used by mmc core card detect, cause
the system to hang.

This issue was first encountered during my attempt to get out-of-band
interrupts for WiFi on the Cubietruck working. With David's new series
of sunci-mci using mmc slot-gpio for (GPIO interrupt based) card
detection, removing the SD card also causes my Cubietruck to hang. This
problem should extend to all Allwinner A20 based boards.

With this fix, the system no longer hangs when I remove or insert the
SD card. /proc/interrupts show that the interrupt has correctly fired.
However the system still does not detect card removal/insertion. I
believe this is another unrelated issue.

Cc: stable@vger.kernel.org
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-sunxi.c