Skip to content

Commit e141db8

Browse files
jhnikulaalexandrebelloni
authored andcommitted
i3c: mipi-i3c-hci: Set ring start request together with enable
Set ring start request together with ring enable in hci_dma_init(). This causes the ring abort request in hci_dma_dequeue_xfer() will raise the INTR_RING_OP (RING_OP_STAT in MIPI I3C HCI specification) interrupt in the RH_INTR_STATUS register. Signed-off-by: Jarkko Nikula <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Belloni <[email protected]>
1 parent 361acac commit e141db8

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,8 @@ static int hci_dma_init(struct i3c_hci *hci)
325325
rh_reg_write(INTR_SIGNAL_ENABLE, regval);
326326

327327
ring_ready:
328-
rh_reg_write(RING_CONTROL, RING_CTRL_ENABLE);
328+
rh_reg_write(RING_CONTROL, RING_CTRL_ENABLE |
329+
RING_CTRL_RUN_STOP);
329330
}
330331

331332
regval = FIELD_PREP(MAX_HEADER_COUNT, rings->total);

0 commit comments

Comments
 (0)