summaryrefslogtreecommitdiffstats
path: root/drivers/i3c/master
diff options
context:
space:
mode:
authorPrzemyslaw Gaj <pgaj@cadence.com>2018-12-12 12:39:40 +0100
committerBoris Brezillon <boris.brezillon@bootlin.com>2018-12-12 17:08:32 +0100
commit25ac3da61ba144f8dbfe377eeec6b1da7ad0854a (patch)
tree36d6d15e53608525a3572b3ee6fec6faff37ceb4 /drivers/i3c/master
parentic3: off by one in mode_show() (diff)
downloadlinux-25ac3da61ba144f8dbfe377eeec6b1da7ad0854a.tar.xz
linux-25ac3da61ba144f8dbfe377eeec6b1da7ad0854a.zip
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: 603f2bee2c54 ("i3c: master: Add driver for Cadence IP") Signed-off-by: Przemyslaw Gaj <pgaj@cadence.com> Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Diffstat (limited to 'drivers/i3c/master')
-rw-r--r--drivers/i3c/master/i3c-master-cdns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i3c/master/i3c-master-cdns.c b/drivers/i3c/master/i3c-master-cdns.c
index e828921513b8..bbd79b8b1a80 100644
--- a/drivers/i3c/master/i3c-master-cdns.c
+++ b/drivers/i3c/master/i3c-master-cdns.c
@@ -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) |