linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/1] pinctrl: ocelot: fix system hang on level based interrupts
@ 2024-10-06 18:13 Sergey Matsievskiy
  2024-10-06 18:13 ` [PATCH 1/1] " Sergey Matsievskiy
  0 siblings, 1 reply; 6+ messages in thread
From: Sergey Matsievskiy @ 2024-10-06 18:13 UTC (permalink / raw)
  To: linus.walleij
  Cc: alexandre.belloni, quentin.schulz, lars.povlsen, horatiu.vultur,
	andriy.shevchenko, linux-gpio, linux-kernel, linux-mips,
	UNGLinuxDriver, Sergey Matsievskiy

I've encountered the interrupt handle loop when using Jaguar VSC7448
chip with MAX3421, configured in level interrupt mode (default mode for
MAX3421). Upon connecting thumb drive to MAX3421, the system would
hang. After some investigation, I've traced the problem to the GPIO
interrupt controller code: by the time ocelot_irq_handler() is executed,
MAX3421 would clear its interrupt, subsequently lowering bit in GPIO
controller interrupt identify register. Because of this,
chained_irq_enter() would never be executed, and the parent interrupt
would never be cleared, resulting in a continuous interrupt handling
loop.

This could be fixed by clearing parent interrupt unconditionally, even
when no bits are set in interrupt identify registers.

Sergey Matsievskiy (1):
  pinctrl: ocelot: fix system hang on level based interrupts

 drivers/pinctrl/pinctrl-ocelot.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

-- 
2.39.5


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-10-11 20:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-06 18:13 [PATCH 0/1] pinctrl: ocelot: fix system hang on level based interrupts Sergey Matsievskiy
2024-10-06 18:13 ` [PATCH 1/1] " Sergey Matsievskiy
2024-10-11  9:18   ` Linus Walleij
2024-10-11 15:40     ` Sergey Matsievskiy
2024-10-11 20:02       ` Linus Walleij
2024-10-11 20:54   ` Alexandre Belloni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).