drivers: i3c: cdns: fix reading error after transfer

Due to a bug, after a completed transfer happen. Only the first
command response error was read. This fixes the issue so all
commands are read for if an error occurred.

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
This commit is contained in:
Ryan McClelland 2023-08-04 15:00:39 -07:00 committed by Carles Cufí
commit 696acc78e0

View file

@ -1302,7 +1302,7 @@ static void cdns_i3c_complete_transfer(const struct device *dev)
}
for (int i = 0; i < data->xfer.num_cmds; i++) {
switch (data->xfer.cmds->error) {
switch (data->xfer.cmds[i].error) {
case CMDR_NO_ERROR:
break;