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:


在 2026/7/10 16:50, Mukesh Savaliya 写道:


On 7/10/2026 12:51 PM, Pei Xiao wrote:
When the interrupt status register reads zero, the handler should
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:
note_interrupt() ? You mean to say No interrupt OR invalid interrupt
here ? I could not understand function name.
https://elixir.bootlin.com/linux/v7.2-rc1/source/kernel/irq/spurious.c#L222
Thanks a lot ! I understood now.

[...]


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>