Commit 9511aac2 authored by Ren Chen's avatar Ren Chen Committed by github-actions[bot]
Browse files

drivers: i3c: common: fix the setaasa flow

There is an incorrect dynamic address setting for setaasa. The correct
behavior is that the dynamic address should be assigned as a static
address only when the CCC request returns success. This commit fixes the
issue.

Signed-off-by: default avatarRen Chen <Ren.Chen@ite.com.tw>
(cherry picked from commit 373771c0)
parent 7823374e
Loading
Loading
Loading
Loading
+2 −0
Changes for drivers/i3c/i3c_common.c: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -1088,6 +1088,8 @@ int i3c_bus_init(const struct device *dev, const struct i3c_dev_list *dev_list)
	if (need_aasa) {
		ret = i3c_ccc_do_setaasa_all(dev);
		if (ret != 0) {
			LOG_ERR("failed to perform setaasa");
		} else {
			for (i = 0; i < dev_list->num_i3c; i++) {
				struct i3c_device_desc *desc = &dev_list->i3c[i];
				/*