Skip to content

Commit d225d15

Browse files
XenuIsWatchingkartben
authored andcommitted
drivers: i3c: cdns: fix ibi thr write
The dts define for the ibi threshold (watermark) was be written to the ibi response threshold. Fix it to write to the correct spot. Signed-off-by: Ryan McClelland <[email protected]>
1 parent 1b7de61 commit d225d15

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

drivers/i3c/i3c_cdns.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -486,8 +486,6 @@
486486
#define I3C_CMDR_THR 1
487487
/* command tx fifo threshold - unused */
488488
#define I3C_CMDD_THR 1
489-
/* in-band-interrupt data fifo threshold - unused */
490-
#define I3C_IBID_THR 1
491489
/* in-band-interrupt response queue threshold */
492490
#define I3C_IBIR_THR 1
493491
/* tx data threshold - unused */
@@ -3559,8 +3557,8 @@ static int cdns_i3c_bus_init(const struct device *dev)
35593557
sys_write32(CTRL_DEV_EN | ctrl, config->base + CTRL);
35603558

35613559
/* Set fifo thresholds. */
3562-
sys_write32(CMD_THR(I3C_CMDD_THR) | IBI_THR(I3C_IBID_THR) | CMDR_THR(I3C_CMDR_THR) |
3563-
IBIR_THR(config->ibid_thr),
3560+
sys_write32(CMD_THR(I3C_CMDD_THR) | IBI_THR(config->ibid_thr) | CMDR_THR(I3C_CMDR_THR) |
3561+
IBIR_THR(I3C_IBIR_THR),
35643562
config->base + CMD_IBI_THR_CTRL);
35653563

35663564
/* Set TX/RX interrupt thresholds. */

0 commit comments

Comments
 (0)