linux-yocto/drivers/i3c
Stanley Chu bc4a09d8e7 i3c: master: svc: Fix npcm845 FIFO_EMPTY quirk
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: 4008a74e0f ("i3c: master: svc: Fix npcm845 FIFO empty issue")
Signed-off-by: Stanley Chu <yschu@nuvoton.com>
Link: https://lore.kernel.org/r/20250730003719.1825593-1-yschu@nuvoton.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2025-07-31 01:36:16 +02:00
..
master i3c: master: svc: Fix npcm845 FIFO_EMPTY quirk 2025-07-31 01:36:16 +02:00
device.c i3c: Fix i3c_device_do_priv_xfers() kernel-doc indentation 2025-07-31 01:23:12 +02:00
internals.h i3c: master: Add inline i3c_readl_fifo() and i3c_writel_fifo() 2025-07-31 01:21:10 +02:00
Kconfig
Makefile
master.c i3c: Standardize defines for specification parameters 2025-07-31 01:33:20 +02:00