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>
i3c_ccc_cmd_dest_cleanup(&dest);
+ if (ret)
+ ret = cmd.err;
+
return ret;
}
ret = i3c_master_send_ccc_cmd_locked(master, &cmd);
i3c_ccc_cmd_dest_cleanup(&dest);
+ if (ret)
+ ret = cmd.err;
+
return ret;
}