Skip to content

Commit cbf871e

Browse files
billy-tsaialexandrebelloni
authored andcommitted
i3c/master: cmd_v1: Fix the exit criteria for the daa procedure
The exit criteria for the DAA should check if the data length is equal to 1, instead of checking if the response status is equal to 1. Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com> Link: https://lore.kernel.org/r/20230802100909.2568215-1-billy_tsai@aspeedtech.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
1 parent 574ca75 commit cbf871e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/i3c/master/mipi-i3c-hci/cmd_v1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ static int hci_cmd_v1_daa(struct i3c_hci *hci)
339339
break;
340340
}
341341
if (RESP_STATUS(xfer[0].response) == RESP_ERR_NACK &&
342-
RESP_STATUS(xfer[0].response) == 1) {
342+
RESP_DATA_LENGTH(xfer->response) == 1) {
343343
ret = 0; /* no more devices to be assigned */
344344
break;
345345
}

0 commit comments

Comments
 (0)