mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-24 01:09:38 -05:00
i3c: mipi-i3c-hci: Handle I3C address header error in hci_cmd_v1_daa()
Handle also I3C address header error response status as the end of DAA process in hci_cmd_v1_daa(). According to MIPI I3C HCI Specification v1.1 the NACK error during DAA process comes when the device does not accept the dynamic address. Currently code uses it for successful exit from the process and fails with any other error response. I'm unsure is this MIPI I3C HCI version specific difference or specification misunderstanding but on an early MIPI I3C HCI version compatible controller responds always with I3C address header error and not with NACK error when there is no device on the bus or no more devices participating to DAA process. Handle now both response statuses as the end of DAA. Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com> Link: https://lore.kernel.org/r/20231109133708.653950-4-jarkko.nikula@linux.intel.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
This commit is contained in:
parent
0be1a06c66
commit
f83f86e506
1 changed files with 2 additions and 1 deletions
|
@ -339,7 +339,8 @@ static int hci_cmd_v1_daa(struct i3c_hci *hci)
|
|||
ret = -ETIME;
|
||||
break;
|
||||
}
|
||||
if (RESP_STATUS(xfer->response) == RESP_ERR_NACK &&
|
||||
if ((RESP_STATUS(xfer->response) == RESP_ERR_ADDR_HEADER ||
|
||||
RESP_STATUS(xfer->response) == RESP_ERR_NACK) &&
|
||||
RESP_DATA_LENGTH(xfer->response) == 1) {
|
||||
ret = 0; /* no more devices to be assigned */
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue