]> Git Repo - J-linux.git/commitdiff
i3c: master: svc: fix SDA keep low when polling IBIWON timeout happen
authorFrank Li <[email protected]>
Mon, 23 Oct 2023 16:16:57 +0000 (12:16 -0400)
committerAlexandre Belloni <[email protected]>
Fri, 3 Nov 2023 18:48:17 +0000 (19:48 +0100)
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: dd3c52846d59 ("i3c: master: svc: Add Silvaco I3C master driver")
Cc: <[email protected]>
Reviewed-by: Miquel Raynal <[email protected]>
Signed-off-by: Frank Li <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexandre Belloni <[email protected]>
drivers/i3c/master/svc-i3c-master.c

index 0673ecd1a39d141cce60b7203094094d1d9081f1..18843e07d17579457a4642f8ad87906e539c0029 100644 (file)
@@ -405,6 +405,7 @@ static void svc_i3c_master_ibi_work(struct work_struct *work)
                                         SVC_I3C_MSTATUS_IBIWON(val), 0, 1000);
        if (ret) {
                dev_err(master->dev, "Timeout when polling for IBIWON\n");
+               svc_i3c_master_emit_stop(master);
                goto reenable_ibis;
        }
 
This page took 0.050162 seconds and 4 git commands to generate.