Skip to content

Commit 69e31d8

Browse files
ttmutfabiobaltieri
authored andcommitted
drivers: i3c: max32: Do not exit CCC if no known I3C devices exist
I3C targets can join the bus after initialization so CCC should not exit if no known I3C devices exist at init time. Signed-off-by: Tahsin Mutlugun <[email protected]>
1 parent 1e22848 commit 69e31d8

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

drivers/i3c/i3c_max32.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1127,15 +1127,6 @@ static int max32_i3c_do_ccc(const struct device *dev, struct i3c_ccc_payload *pa
11271127
return -EINVAL;
11281128
}
11291129

1130-
if (config->common.dev_list.num_i3c == 0) {
1131-
/*
1132-
* No i3c devices in dev tree. Just return so
1133-
* we don't get errors doing cmds when there
1134-
* are no devices listening/responding.
1135-
*/
1136-
return 0;
1137-
}
1138-
11391130
k_mutex_lock(&data->lock, K_FOREVER);
11401131

11411132
max32_i3c_xfer_reset(regs);

0 commit comments

Comments
 (0)