mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-13 04:39:36 +02:00
i3c: master: svc: change ENXIO to EAGAIN when IBI occurs during start frame
[ Upstream commit7f3d633b46
] 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:5e5e3c92e7
("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
3dc730aa1b
commit
20da5bfd66
|
@ -1065,7 +1065,7 @@ static int svc_i3c_master_xfer(struct svc_i3c_master *master,
|
||||||
* and yield the above events handler.
|
* and yield the above events handler.
|
||||||
*/
|
*/
|
||||||
if (SVC_I3C_MSTATUS_IBIWON(reg)) {
|
if (SVC_I3C_MSTATUS_IBIWON(reg)) {
|
||||||
ret = -ENXIO;
|
ret = -EAGAIN;
|
||||||
*actual_len = 0;
|
*actual_len = 0;
|
||||||
goto emit_stop;
|
goto emit_stop;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user