[PATCH] pinctrl: sunxi: Fix multi bank interrupt support in gpio_to_irq

Linus Walleij linus.walleij at linaro.org
Fri Jul 4 14:44:42 PDT 2014


On Mon, Jun 30, 2014 at 6:04 PM, Chen-Yu Tsai <wens at csie.org> wrote:

> 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 at csie.org>

Patch applied with Maxime's ACK.

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list