]> git.ipfire.org Git - thirdparty/linux.git/commit
i3c: mipi-i3c-hci: Complete transfer lists immediately on error
authorAdrian Hunter <adrian.hunter@intel.com>
Wed, 3 Jun 2026 09:07:44 +0000 (12:07 +0300)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sun, 14 Jun 2026 15:21:34 +0000 (17:21 +0200)
commitf00deffd9a5dcef36f5d3ef5eea93b134ecea49f
tree8e456acb2f079ad3599d9f2a1f22e148321ae443
parent2dbe7832ae9c3026442fe5249a799a2278c0ebb6
i3c: mipi-i3c-hci: Complete transfer lists immediately on error

In DMA mode, transfer lists are currently completed only when the final
transfer in the list completes. If an earlier transfer fails, the list is
left incomplete and callers wait until timeout.

There is no need to wait for a timeout, as the completion path in
i3c_hci_process_xfer() already checks for error status. Complete the
transfer list as soon as any transfer in the list reports an error.

This avoids unnecessary delays and spurious timeouts on error.

Complete a transfer list completion immediately there is an error.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20260603090754.16252-8-adrian.hunter@intel.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/i3c/master/mipi-i3c-hci/dma.c
drivers/i3c/master/mipi-i3c-hci/hci.h