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:
parent
75bc80d86f
commit
696acc78e0
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue