[PATCH v2] i2c: spacemit: fix spurious IRQ handling returning IRQ_HANDLED

Mukesh Savaliya mukesh.savaliya at oss.qualcomm.com
Sun Jul 12 22:15:17 PDT 2026



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 at kylinos.cn>
>>> ---
>>> 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 at oss.qualcomm.com>




More information about the linux-riscv mailing list