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

From: Michael Walle
Date: Tue Oct 18 2022 - 03:31:06 EST


Am 2022-10-18 09:09, schrieb Horatiu Vultur:
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>

Tested-by: Michael Walle <michael@xxxxxxxx>

-michael