mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 03:10:30 -04:00
i3c: mipi-i3c-hci: Fix missing xfer->completion in hci_cmd_v1_daa()
Due to missing completion object for the ENTDAA command transfer in the hci_cmd_v1_daa() the wait_for_completion_timeout() will obviously timeout even the transfer itself may succeed. Fix this by setting the xfer->completion to the already initialized completion object. Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com> Link: https://lore.kernel.org/r/20230921055704.1087277-11-jarkko.nikula@linux.intel.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
This commit is contained in:
committed by
Alexandre Belloni
parent
b8806e0c93
commit
4c36f656b7
@@ -332,6 +332,7 @@ static int hci_cmd_v1_daa(struct i3c_hci *hci)
|
||||
CMD_A0_DEV_COUNT(1) |
|
||||
CMD_A0_ROC | CMD_A0_TOC;
|
||||
xfer->cmd_desc[1] = 0;
|
||||
xfer->completion = &done;
|
||||
hci->io->queue_xfer(hci, xfer, 1);
|
||||
if (!wait_for_completion_timeout(&done, HZ) &&
|
||||
hci->io->dequeue_xfer(hci, xfer, 1)) {
|
||||
|
||||
Reference in New Issue
Block a user