Re: [PATCH] pinctrl: ocelot: Fix incorrect trigger of the interrupt.

From: Linus Walleij
Date: Tue Oct 18 2022 - 04:42:53 EST


On Tue, Oct 18, 2022 at 9:05 AM Horatiu Vultur
<horatiu.vultur@xxxxxxxxxxxxx> wrote:

> The interrupt controller can detect only link changes. So in case an
> external device generated a level based interrupt, then the interrupt
> controller detected correctly the first edge. But the problem was that
> the interrupt controller was detecting also the edge when the interrupt
> was cleared. So it would generate another interrupt.
> The fix for this is to clear the second interrupt but still check the
> interrupt line status.
>
> Fixes: c297561bc98a ("pinctrl: ocelot: Fix interrupt controller")
> Signed-off-by: Horatiu Vultur <horatiu.vultur@xxxxxxxxxxxxx>

Patch applied for fixes!

Yours,
Linus Walleij