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 <ryanmcclelland@meta.com>
This commit is contained in:
Ryan McClelland 2022-10-22 12:52:57 -07:00 committed by Christopher Friedt
parent e48dc11ee0
commit 371470d608

View file

@ -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;