]> git.baikalelectronics.ru Git - kernel.git/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)
commit8c71f84d111508760a8e78f640bb411db58b7a2e
tree73c84d38e302e213b5005831d2138c7c3ffcda5e
parentb05b9cee8162228ab4ab6bfa208778cd2be2f790
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