Skip to content

Commit

Permalink
drivers: i3c: cdns: fix reading error after transfer
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
XenuIsWatching authored and carlescufi committed Sep 13, 2023
1 parent 75bc80d commit 696acc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/i3c/i3c_cdns.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 696acc7

Please sign in to comment.