mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 02:00:54 +07:00
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: 603f2bee2c
("i3c: master: Add driver for Cadence IP")
Signed-off-by: Przemyslaw Gaj <pgaj@cadence.com>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
This commit is contained in:
parent
afe120c777
commit
25ac3da61b
@ -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) |
|
||||
|
Loading…
Reference in New Issue
Block a user