i3c: master: svc: Prevent incomplete IBI transaction
authorStanley Chu <yschu@nuvoton.com>
Mon, 27 Oct 2025 03:47:15 +0000 (11:47 +0800)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 30 Oct 2025 17:03:51 +0000 (18:03 +0100)
commit3a36273e5a07dda0ccec193800f3b78c3c0380af
tree400bc93b955c61d4e4bc67143cb08391ee06b79b
parent9d4f219807d5ac11fb1d596e4ddb09336b040067
i3c: master: svc: Prevent incomplete IBI transaction

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>
drivers/i3c/master/svc-i3c-master.c