Skip to contentSkip to conversation

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

PATCH Boris Brezillon 1 participant 1 message Dec 12, 2018 1 message not in the archive I3C

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Boris Brezillon

author Applied
#1 lore raw
Quoted 4 lines · On Wed, 12 Dec 2018 11:39:40 +0000 Przemyslaw Gaj <[email protected]> wrote:

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

Queued to i3c/next (after adding the Fixes tag I mentioned in my previous reply).

Thanks,

Boris

Quoted 9 lines
---
 drivers/i3c/master/i3c-master-cdns.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/i3c/master/i3c-master-cdns.c +0 -0
index 4f59942..02a8297 100644

drivers/i3c/master/i3c-master-cdns.c static int cdns_i3c_master_i2c_xfers(struct i2c_dev_desc *dev, · line 842

Quoted 8 lines
drivers/i3c/master/i3c-master-cdns.c +1 -1
@@ -836,7 +836,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) |

_______________________________________________
linux-i3c mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-i3c