Skip to content

Commit 373771c

Browse files
Chenhongrenaescolar
authored andcommitted
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: Ren Chen <Ren.Chen@ite.com.tw>
1 parent fbb7586 commit 373771c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/i3c/i3c_common.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,6 +1070,8 @@ int i3c_bus_init(const struct device *dev, const struct i3c_dev_list *dev_list)
10701070
if (need_aasa) {
10711071
ret = i3c_ccc_do_setaasa_all(dev);
10721072
if (ret != 0) {
1073+
LOG_ERR("failed to perform setaasa");
1074+
} else {
10731075
for (i = 0; i < dev_list->num_i3c; i++) {
10741076
struct i3c_device_desc *desc = &dev_list->i3c[i];
10751077
/*

0 commit comments

Comments
 (0)