diff options
| author | Dinesh Maniyam <[email protected]> | 2025-08-06 12:32:30 +0800 |
|---|---|---|
| committer | Heiko Schocher <[email protected]> | 2025-08-06 08:41:01 +0200 |
| commit | b5cf7cd1749f13a270e864d9ccd8960e4988941a (patch) | |
| tree | 17ea9b38a059bcfcedf054433da13caca6d5d1f3 | |
| parent | ca4c92cbffff17ca071774feba849db1b6319220 (diff) | |
drivers: i3c: master: Enable probe i3c without slave device
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 <[email protected]>
| -rw-r--r-- | drivers/i3c/master.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/i3c/master.c b/drivers/i3c/master.c index cf659c040a2..019167a2dc5 100644 --- a/drivers/i3c/master.c +++ b/drivers/i3c/master.c @@ -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; } |
