]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
i3c: master: svc: Fix npcm845 FIFO empty issue
authorStanley Chu <yschu@nuvoton.com>
Thu, 6 Mar 2025 07:54:27 +0000 (15:54 +0800)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 6 Mar 2025 20:51:33 +0000 (21:51 +0100)
commit4008a74e0f9b0ec25441028e324452933644ed2a
tree5d31e880266e1da7a076819ceb17420a07553767
parent98d87600a04e42282797631aa6b98dd43999e274
i3c: master: svc: Fix npcm845 FIFO empty issue

I3C HW stalls the write transfer if the transmit FIFO becomes empty,
when new data is written to FIFO, I3C HW resumes the transfer but the
first transmitted data bit may have the wrong value.
Fill the FIFO in advance to prevent FIFO from becoming empty.

Reviewed-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Stanley Chu <yschu@nuvoton.com>
Link: https://lore.kernel.org/r/20250306075429.2265183-4-yschu@nuvoton.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/i3c/master/svc-i3c-master.c