]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
i3c: master: svc: Prevent incomplete IBI transaction
authorStanley Chu <yschu@nuvoton.com>
Mon, 27 Oct 2025 03:47:15 +0000 (11:47 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 13:02:44 +0000 (14:02 +0100)
commit8ddff9989f06aa9a30fa8b76f3154149f76b42fd
treef9aadf548730cb71edff2322f76298b9b6323639
parentc704ccb558eef6704cccc2b4f8f22e09ae0ebe6f
i3c: master: svc: Prevent incomplete IBI transaction

[ Upstream commit 3a36273e5a07dda0ccec193800f3b78c3c0380af ]

If no free IBI slot is available, svc_i3c_master_handle_ibi returns
immediately. This causes the STOP condition to be missed because the
EmitStop request is sent when the transfer is not complete. To resolve
this, svc_i3c_master_handle_ibi must wait for the transfer to complete
before returning.

Fixes: dd3c52846d59 ("i3c: master: svc: Add Silvaco I3C master driver")
Signed-off-by: Stanley Chu <yschu@nuvoton.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://patch.msgid.link/20251027034715.708243-1-yschu@nuvoton.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/i3c/master/svc-i3c-master.c