[PATCH v3] i3c: master: svc: Fix npcm845 FIFO_EMPTY quirk

Miquel Raynal miquel.raynal at bootlin.com
Wed Jul 30 00:59:43 PDT 2025


Hi Stanley,

On 30/07/2025 at 08:37:19 +08, Stanley Chu <stanley.chuys at gmail.com> wrote:

> From: Stanley Chu <yschu at nuvoton.com>
>
> In a private write transfer, the driver pre-fills the FIFO to work around
> the FIFO_EMPTY quirk. However, if an IBIWON event occurs, the hardware
> emits a NACK and the driver initiates a retry. During the retry, driver
> attempts to pre-fill the FIFO again if there is remaining data, but since
> the FIFO is already full, this leads to data loss.
>
> Check available space in FIFO to prevent overflow.
>
> Fixes: 4008a74e0f9b ("i3c: master: svc: Fix npcm845 FIFO empty issue")

Still missing Cc: stable here

> Signed-off-by: Stanley Chu <yschu at nuvoton.com>
> ---

Thanks,
Miquèl



More information about the linux-i3c mailing list