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:
Przemyslaw Gaj 2018-12-12 11:39:40 +00:00 коммит произвёл Boris Brezillon
Родитель afe120c777
Коммит 25ac3da61b
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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) |