From: Stanley Chu <stanley.chuys@gmail.com>
To: frank.li@nxp.com, miquel.raynal@bootlin.com,
alexandre.belloni@bootlin.com, linux-i3c@lists.infradead.org
Cc: linux-kernel@vger.kernel.org, tomer.maimon@nuvoton.com,
kwliu@nuvoton.com, yschu@nuvoton.com
Subject: [PATCH v1 0/2] i3c: master: svc: Fix false SLVSTART issues on NPCM845
Date: Mon, 13 Apr 2026 08:50:38 +0800 [thread overview]
Message-ID: <20260413005040.1211107-1-yschu@nuvoton.com> (raw)
From: Stanley Chu <yschu@nuvoton.com>
The Nuvoton NPCM845 I3C controller has a hardware quirk
(SVC_I3C_QUIRK_FALSE_SLVSTART) where a spurious SLVSTART interrupt
may be generated. This series addresses two separate issues related to
this quirk:
1. A race condition where a real IBI arrives after MSTATUS is latched
but before the SLVSTART status is cleared, causing the IRQ handler
to return early on a stale snapshot and miss the pending IBI. Fixed
by re-reading MSTATUS after clearing the interrupt status.
2. When a target holds SDA low, the controller reports a Master Request
(MR). Emitting the required STOP condition in response spuriously
sets SLVSTART again, re-entering the MR handler in a loop and causing
an IRQ storm. Fixed by explicitly clearing SLVSTART after the STOP
in the MR handler.
Stanley Chu (2):
i3c: master: svc: Fix missed IBI after false SLVSTART on NPCM845
i3c: master: svc: Prevent IRQ storm from false SLVSTART on NPCM845
drivers/i3c/master/svc-i3c-master.c | 25 +++++++++++++++++++++----
1 file changed, 21 insertions(+), 4 deletions(-)
--
2.34.1
--
linux-i3c mailing list
linux-i3c@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-i3c
next reply other threads:[~2026-04-13 0:51 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-13 0:50 Stanley Chu [this message]
2026-04-13 0:50 ` [PATCH v1 1/2] i3c: master: svc: Fix missed IBI after false SLVSTART on NPCM845 Stanley Chu
2026-04-13 1:16 ` Frank Li
2026-04-13 1:40 ` Stanley Chu
2026-04-13 3:00 ` Frank Li
2026-04-13 3:59 ` Stanley Chu
2026-04-22 9:19 ` Frank Li
2026-04-13 0:50 ` [PATCH v1 2/2] i3c: master: svc: Prevent IRQ storm from " Stanley Chu
2026-04-22 9:20 ` Frank Li
2026-04-30 10:01 ` [PATCH v1 0/2] i3c: master: svc: Fix false SLVSTART issues " Alexandre Belloni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260413005040.1211107-1-yschu@nuvoton.com \
--to=stanley.chuys@gmail.com \
--cc=alexandre.belloni@bootlin.com \
--cc=frank.li@nxp.com \
--cc=kwliu@nuvoton.com \
--cc=linux-i3c@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=miquel.raynal@bootlin.com \
--cc=tomer.maimon@nuvoton.com \
--cc=yschu@nuvoton.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox