mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-27 21:03:32 +00:00
i3c: master: svc: fix SDA keep low when polling IBIWON timeout happen
commitdfd7cd6aaf
upstream. Upon IBIWON timeout, the SDA line will always be kept low if we don't emit a stop. Calling svc_i3c_master_emit_stop() there will let the bus return to idle state. Fixes:dd3c52846d
("i3c: master: svc: Add Silvaco I3C master driver") Cc: <stable@vger.kernel.org> Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com> Signed-off-by: Frank Li <Frank.Li@nxp.com> Link: https://lore.kernel.org/r/20231023161658.3890811-6-Frank.Li@nxp.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
ccf8c93a3c
commit
d85cce9a5c
1 changed files with 1 additions and 0 deletions
|
@ -405,6 +405,7 @@ static void svc_i3c_master_ibi_work(struct work_struct *work)
|
||||||
SVC_I3C_MSTATUS_IBIWON(val), 0, 1000);
|
SVC_I3C_MSTATUS_IBIWON(val), 0, 1000);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
dev_err(master->dev, "Timeout when polling for IBIWON\n");
|
dev_err(master->dev, "Timeout when polling for IBIWON\n");
|
||||||
|
svc_i3c_master_emit_stop(master);
|
||||||
goto reenable_ibis;
|
goto reenable_ibis;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue