]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
drivers: i3c: master: Enable probe i3c without slave device
authorDinesh Maniyam <dinesh.maniyam@altera.com>
Wed, 6 Aug 2025 04:32:30 +0000 (12:32 +0800)
committerHeiko Schocher <hs@denx.de>
Wed, 6 Aug 2025 06:41:01 +0000 (08:41 +0200)
Picked linux i3c driver upstraming patch to fix the issue to
probe for i3c controller without slave device attached.
With this fix, the ret check will be on command error and will success
without slave device attached.

Signed-off-by: Dinesh Maniyam <dinesh.maniyam@altera.com>
drivers/i3c/master.c

index cf659c040a24f5d84325b84f2eacf7f3e1c03bef..019167a2dc5149410fbaeb76f203ef91b69d3067 100644 (file)
@@ -452,6 +452,9 @@ static int i3c_master_rstdaa_locked(struct i3c_master_controller *master,
 
        i3c_ccc_cmd_dest_cleanup(&dest);
 
+       if (ret)
+               ret = cmd.err;
+
        return ret;
 }
 
@@ -507,6 +510,9 @@ static int i3c_master_enec_disec_locked(struct i3c_master_controller *master,
        ret = i3c_master_send_ccc_cmd_locked(master, &cmd);
        i3c_ccc_cmd_dest_cleanup(&dest);
 
+       if (ret)
+               ret = cmd.err;
+
        return ret;
 }