Skip to content

Commit 8c7417a

Browse files
XenuIsWatchingnashif
authored andcommitted
drivers: i3c: fix adv_info_get ret code
It's possible if a device is an i3c v1.0 spec, no hdr, no mxds, no controller caps, and does not have a mrl nor mwl. It should return 0 if it doesn't need to do anything. Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
1 parent 8286b0e commit 8c7417a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/i3c/i3c_common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ int i3c_device_adv_info_get(struct i3c_device_desc *target)
772772
struct i3c_ccc_mwl mwl = {0};
773773
union i3c_ccc_getcaps caps = {0};
774774
union i3c_ccc_getmxds mxds = {0};
775-
int ret = -EIO;
775+
int ret = 0;
776776

777777
/* GETMRL */
778778
if (i3c_ccc_do_getmrl(target, &mrl) != 0) {

0 commit comments

Comments
 (0)