We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e40642 commit 7ccd40eCopy full SHA for 7ccd40e
drivers/i3c/master/mipi-i3c-hci/dma.c
@@ -229,6 +229,9 @@ static int hci_dma_init(struct i3c_hci *hci)
229
hci->io_data = rings;
230
rings->total = nr_rings;
231
232
+ regval = FIELD_PREP(MAX_HEADER_COUNT, rings->total);
233
+ rhs_reg_write(CONTROL, regval);
234
+
235
for (i = 0; i < rings->total; i++) {
236
u32 offset = rhs_reg_read(RHn_OFFSET(i));
237
@@ -329,8 +332,6 @@ static int hci_dma_init(struct i3c_hci *hci)
329
332
RING_CTRL_RUN_STOP);
330
333
}
331
334
- regval = FIELD_PREP(MAX_HEADER_COUNT, rings->total);
- rhs_reg_write(CONTROL, regval);
335
return 0;
336
337
err_out:
0 commit comments