[PATCH] pinctrl: st: Fix irqmux handler
Linus Walleij
linus.walleij at linaro.org
Mon Jul 7 07:59:19 PDT 2014
On Fri, Jun 20, 2014 at 1:34 PM, Maxime COQUELIN <maxime.coquelin at st.com> wrote:
> st_gpio_irqmux_handler() reads the status register to find out
> which banks inside the controller have pending IRQs.
> For each banks having pending IRQs, it calls the corresponding handler.
>
> Problem is that current code restricts the number of possible banks inside the
> controller to ST_GPIO_PINS_PER_BANK. This define represents the number of pins
> inside a bank, so it shouldn't be used here.
>
> On STiH407, PIO_FRONT0 controller has 10 banks, so IRQs pending in the two
> last banks (PIO18 & PIO19) aren't handled.
>
> This patch replace ST_GPIO_PINS_PER_BANK by the number of banks inside the
> controller.
>
> Cc: Srinivas Kandagatla <srinivas.kandagatla at linaro.org>
> Cc: Linus Walleij <linus.walleij at linaro.org>
> Cc: <stable at vger.kernel.org> #v3.15+
> Signed-off-by: Maxime Coquelin <maxime.coquelin at st.com>
Patch applied for fixes with Srinivas ACK.
Thanks!
Yours,
Linus Walleij
More information about the linux-arm-kernel
mailing list