Re: [PATCH] pinctrl: st: Fix irqmux handler

From: Linus Walleij
Date: Mon Jul 07 2014 - 10:59:27 EST


On Fri, Jun 20, 2014 at 1:34 PM, Maxime COQUELIN <maxime.coquelin@xxxxxx> 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@xxxxxxxxxx>
> Cc: Linus Walleij <linus.walleij@xxxxxxxxxx>
> Cc: <stable@xxxxxxxxxxxxxxx> #v3.15+
> Signed-off-by: Maxime Coquelin <maxime.coquelin@xxxxxx>

Patch applied for fixes with Srinivas ACK.

Thanks!
Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/