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

From: Linus Walleij
Date: Fri Jun 25 2021 - 19:54:06 EST


On Thu, Jun 17, 2021 at 4:46 PM Fabien Dessenne
<fabien.dessenne@xxxxxxxxxxx> 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@xxxxxxxxxxx>

Patch applied!

Yours,
Linus Walleij