From 371470d608caaaadd48dd82811bb6df97b8e2c9f Mon Sep 17 00:00:00 2001 From: Ryan McClelland Date: Sat, 22 Oct 2022 12:52:57 -0700 Subject: [PATCH] i3c: GETMWL and GETMRL may be optionally supported if no settable limit According to section 5.1.9.3.5 and 5.1.9.3.6 of the I3C Specification v1.1.1. This CCC is may be optionally supported if the target device has no settable limit. Signed-off-by: Ryan McClelland --- drivers/i3c/i3c_common.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/i3c/i3c_common.c b/drivers/i3c/i3c_common.c index a00f6b4f5f1..fea6634bb28 100644 --- a/drivers/i3c/i3c_common.c +++ b/drivers/i3c/i3c_common.c @@ -348,15 +348,15 @@ int i3c_device_basic_info_get(struct i3c_device_desc *target) } /* GETMRL */ - ret = i3c_ccc_do_getmrl(target, &mrl); - if (ret != 0) { - goto out; + if (i3c_ccc_do_getmrl(target, &mrl) != 0) { + /* GETMRL may be optionally supported if no settable limit */ + LOG_DBG("No settable limit for GETMRL"); } /* GETMWL */ - ret = i3c_ccc_do_getmwl(target, &mwl); - if (ret != 0) { - goto out; + if (i3c_ccc_do_getmwl(target, &mwl) != 0) { + /* GETMWL may be optionally supported if no settable limit */ + LOG_DBG("No settable limit for GETMWL"); } target->dcr = dcr.dcr;