Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 7f3d633

Browse files
nxpfranklialexandrebelloni
authored andcommitted
i3c: master: svc: change ENXIO to EAGAIN when IBI occurs during start frame
svc_i3c_master_xfer() returns error ENXIO if an In-Band Interrupt (IBI) occurs when the host starts the frame. Change error code to EAGAIN to inform the client driver that this situation has occurred and to try again sometime later. Fixes: 5e5e3c9 ("i3c: master: svc: fix wrong data return when IBI happen during start frame") Signed-off-by: Frank Li <Frank.Li@nxp.com> Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/r/20240506164009.21375-2-Frank.Li@nxp.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
1 parent 0d25965 commit 7f3d633

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/i3c/master/svc-i3c-master.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1080,7 +1080,7 @@ static int svc_i3c_master_xfer(struct svc_i3c_master *master,
10801080
* and yield the above events handler.
10811081
*/
10821082
if (SVC_I3C_MSTATUS_IBIWON(reg)) {
1083-
ret = -ENXIO;
1083+
ret = -EAGAIN;
10841084
*actual_len = 0;
10851085
goto emit_stop;
10861086
}

0 commit comments

Comments
 (0)