[PATCH] pinctrl: stm32: check for IRQ MUX validity during alloc()

Linus Walleij linus.walleij at linaro.org
Fri Jun 25 16:53:48 PDT 2021


On Thu, Jun 17, 2021 at 4:46 PM Fabien Dessenne
<fabien.dessenne at foss.st.com> wrote:

> Considering the following irq_domain_ops call chain:
> - .alloc() is called when a clients calls platform_get_irq() or
>   gpiod_to_irq()
> - .activate() is called next, when the clients calls
>   request_threaded_irq()
> Check for the IRQ MUX conflict during the first stage (alloc instead of
> activate). This avoids to provide the client with an IRQ that can't be
> used.
>
> Signed-off-by: Fabien Dessenne <fabien.dessenne at foss.st.com>

Patch applied!

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list