Skip to content

Commit fc9176e

Browse files
jhnikulaalexandrebelloni
authored andcommitted
i3c: mipi-i3c-hci: Resume controller after aborted transfer
Host Controller goes to halt state after aborted transfer and needs to be resumed by SW. Add this resuming to DMA mode code too. Signed-off-by: Jarkko Nikula <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Belloni <[email protected]>
1 parent 3521fa6 commit fc9176e

File tree

1 file changed

+3
-1
lines changed
  • drivers/i3c/master/mipi-i3c-hci

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,9 +759,11 @@ static bool hci_dma_irq_handler(struct i3c_hci *hci, unsigned int mask)
759759
if (status & INTR_RING_OP)
760760
complete(&rh->op_done);
761761

762-
if (status & INTR_TRANSFER_ABORT)
762+
if (status & INTR_TRANSFER_ABORT) {
763763
dev_notice_ratelimited(&hci->master.dev,
764764
"ring %d: Transfer Aborted\n", i);
765+
mipi_i3c_hci_resume(hci);
766+
}
765767
if (status & INTR_WARN_INS_STOP_MODE)
766768
dev_warn_ratelimited(&hci->master.dev,
767769
"ring %d: Inserted Stop on Mode Change\n", i);

0 commit comments

Comments
 (0)