Skip to content

Commit 2df1de8

Browse files
jhnikulaalexandrebelloni
authored andcommitted
i3c: mipi-i3c-hci: Set IBI Status and Data Ring base addresses
IBI Status and Data Ring base address registers are not set so HW obviously cannot update those rings after In-Band Interrupt. Set them to already allocated and mapped ring addresses. Signed-off-by: Jarkko Nikula <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Belloni <[email protected]>
1 parent 74e931f commit 2df1de8

File tree

1 file changed

+5
-0
lines changed
  • drivers/i3c/master/mipi-i3c-hci

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,11 @@ static int hci_dma_init(struct i3c_hci *hci)
300300
goto err_out;
301301
}
302302

303+
rh_reg_write(IBI_STATUS_RING_BASE_LO, lower_32_bits(rh->ibi_status_dma));
304+
rh_reg_write(IBI_STATUS_RING_BASE_HI, upper_32_bits(rh->ibi_status_dma));
305+
rh_reg_write(IBI_DATA_RING_BASE_LO, lower_32_bits(rh->ibi_data_dma));
306+
rh_reg_write(IBI_DATA_RING_BASE_HI, upper_32_bits(rh->ibi_data_dma));
307+
303308
regval = FIELD_PREP(IBI_STATUS_RING_SIZE,
304309
rh->ibi_status_entries) |
305310
FIELD_PREP(IBI_DATA_CHUNK_SIZE,

0 commit comments

Comments
 (0)