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:
Родитель
afe120c777
Коммит
25ac3da61b
|
@ -835,7 +835,7 @@ static int cdns_i3c_master_i2c_xfers(struct i2c_dev_desc *dev,
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
for (i = 0; i < nxfers; i++) {
|
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) |
|
ccmd->cmd0 = CMD0_FIFO_DEV_ADDR(xfers[i].addr) |
|
||||||
CMD0_FIFO_PL_LEN(xfers[i].len) |
|
CMD0_FIFO_PL_LEN(xfers[i].len) |
|
||||||
|
|
Загрузка…
Ссылка в новой задаче