Commit 25ac3da6 authored by Przemyslaw Gaj's avatar Przemyslaw Gaj Committed by Boris Brezillon

i3c: master: cdns: fix I2C transfers in Cadence I3C master driver

This patch fixes I2C transfers in Cadence I3C master driver.
There was no way to queue more than one I2C transfer before.

Fixes: 603f2bee ("i3c: master: Add driver for Cadence IP")
Signed-off-by: default avatarPrzemyslaw Gaj <>
Signed-off-by: default avatarBoris Brezillon <>
parent afe120c7
......@@ -835,7 +835,7 @@ static int cdns_i3c_master_i2c_xfers(struct i2c_dev_desc *dev,
return -ENOMEM;
for (i = 0; i < nxfers; i++) {
struct cdns_i3c_cmd *ccmd = &xfer->cmds[0];
struct cdns_i3c_cmd *ccmd = &xfer->cmds[i];
ccmd->cmd0 = CMD0_FIFO_DEV_ADDR(xfers[i].addr) |
CMD0_FIFO_PL_LEN(xfers[i].len) |
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment