Re: [PATCH v2] i2c: spacemit: fix spurious IRQ handling returning IRQ_HANDLED
From: Mukesh Savaliya
Date: Mon Jul 13 2026 - 01:15:30 EST
On 7/10/2026 2:58 PM, Pei Xiao wrote:
Thanks a lot ! I understood now.
在 2026/7/10 16:50, Mukesh Savaliya 写道:
https://elixir.bootlin.com/linux/v7.2-rc1/source/kernel/irq/spurious.c#L222
On 7/10/2026 12:51 PM, Pei Xiao wrote:
When the interrupt status register reads zero, the handler shouldnote_interrupt() ? You mean to say No interrupt OR invalid interrupt
return IRQ_NONE instead of IRQ_HANDLED. What the return value
actually feeds into is the spurious interrupt accounting in
note_interrupt(): falsely claiming IRQ_HANDLED defeats the "irq XX:
here ? I could not understand function name.
[...]
Fixes: 5ea558473fa3 ("i2c: spacemit: add support for SpacemiT K1 SoC")
Signed-off-by: Pei Xiao <xiaopei01@xxxxxxxxxx>
---
changlog in v2:
modify gitlog for Modify the incorrect Git commit message to match
the reason for the modification.
---
Reviewed-by: Mukesh Savaliya <mukesh.savaliya@xxxxxxxxxxxxxxxx>