[PATCH v2] i2c: spacemit: fix spurious IRQ handling returning IRQ_HANDLED
Troy Mitchell
troy.mitchell at linux.spacemit.com
Fri Jul 10 00:46:48 PDT 2026
On Fri Jul 10, 2026 at 12:21 AM PDT, 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:
> nobody cared" detection, so a stuck interrupt source would never be
> caught.
>
> Fixes: 5ea558473fa3 ("i2c: spacemit: add support for SpacemiT K1 SoC")
> Signed-off-by: Pei Xiao <xiaopei01 at kylinos.cn>
The commit message now describes the actual mechanism correctly,
thanks for reworking it:
Reviewed-by: Troy Mitchell <troy.mitchell at linux.spacemit.com>
One process note, though: please don't repost new versions this
quickly. v2 followed the review comments almost immediately, which
means other reviewers who were still looking at v1 never got a
chance to chime in before the thread moved on, and the discussion
gets fragmented across versions.
Documentation/process/submitting-patches.rst ("Don't get
discouraged - or impatient") asks submitters to wait a minimum of
one week before reposting; the same courtesy applies to new
versions while review is still ongoing. Collecting all the feedback
on one version and then sending a single respin saves everyone
time.
- Troy
More information about the linux-riscv
mailing list