linux/drivers/pinctrl/sunxi
Chen-Yu Tsai 0d3bafac65 pinctrl: sunxi: Fix multi bank interrupt support in gpio_to_irq
When mapping the interrupts, the gpio_to_irq function did not consider
the bank number of the gpio pin in question, only the offset or the
interrupt number in the bank. As a result, requests for interrupts in
the later banks get mapped to the first bank.

This issue was discovered while enabling mmc on the new sun8i platform.
The tablet I have uses a pin/interrupt from the second bank to do mmc
card detection. Tested on this very device with register inspection and
actual mmc card insertion/removal.

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>
2014-07-11 14:08:25 +02:00
..
Kconfig pinctrl: sunxi: depend on RESET_CONTROLLER 2014-05-27 15:19:21 +02:00
Makefile pinctrl: sunxi: Fix recursive dependency 2014-05-23 00:35:16 +02:00
pinctrl-sun4i-a10.c pinctrl: sunxi: Declare the number of interrupt banks in the descriptor 2014-06-19 09:35:11 +02:00
pinctrl-sun5i-a10s.c pinctrl: sunxi: Declare the number of interrupt banks in the descriptor 2014-06-19 09:35:11 +02:00
pinctrl-sun5i-a13.c pinctrl: sunxi: Declare the number of interrupt banks in the descriptor 2014-06-19 09:35:11 +02:00
pinctrl-sun6i-a31-r.c pinctrl: sunxi: Declare the number of interrupt banks in the descriptor 2014-06-19 09:35:11 +02:00
pinctrl-sun6i-a31.c pinctrl: sunxi: Declare the interrupt function for the A31 2014-06-19 09:35:12 +02:00
pinctrl-sun7i-a20.c pinctrl: sunxi: Declare the number of interrupt banks in the descriptor 2014-06-19 09:35:11 +02:00
pinctrl-sunxi.c pinctrl: sunxi: Fix multi bank interrupt support in gpio_to_irq 2014-07-11 14:08:25 +02:00
pinctrl-sunxi.h pinctrl: sunxi: Implement multiple interrupt banks support 2014-06-19 09:35:12 +02:00