Re: [PATCH v3] i3c: master: svc: Fix npcm845 FIFO_EMPTY quirk
From: Miquel Raynal
Date: Wed Jul 30 2025 - 04:00:03 EST
Hi Stanley,
On 30/07/2025 at 08:37:19 +08, Stanley Chu <stanley.chuys@xxxxxxxxx> wrote:
> From: Stanley Chu <yschu@xxxxxxxxxxx>
>
> 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@xxxxxxxxxxx>
> ---
Thanks,
Miquèl