Skip to content

Commit 9511aac

Browse files
Chenhongrengithub-actions[bot]
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 <[email protected]> (cherry picked from commit 373771c)
1 parent 7823374 commit 9511aac

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
@@ -1088,6 +1088,8 @@ int i3c_bus_init(const struct device *dev, const struct i3c_dev_list *dev_list)
10881088
if (need_aasa) {
10891089
ret = i3c_ccc_do_setaasa_all(dev);
10901090
if (ret != 0) {
1091+
LOG_ERR("failed to perform setaasa");
1092+
} else {
10911093
for (i = 0; i < dev_list->num_i3c; i++) {
10921094
struct i3c_device_desc *desc = &dev_list->i3c[i];
10931095
/*

0 commit comments

Comments
 (0)