linux-i3c.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH] i3c: master: cdns: fix I2C transfers in Cadence I3C master driver
       [not found] <1544614780-21553-1-git-send-email-pgaj@cadence.com>
@ 2018-12-12 16:10 ` Boris Brezillon
  0 siblings, 0 replies; only message in thread
From: Boris Brezillon @ 2018-12-12 16:10 UTC (permalink / raw)
  To: Przemyslaw Gaj; +Cc: linux-i3c, psroka, rafalc, vitor.soares

On Wed, 12 Dec 2018 11:39:40 +0000
Przemyslaw Gaj <pgaj@cadence.com> wrote:

> This patch fixes I2C transfers in Cadence I3C master driver.
> There was no way to queue more than one I2C transfer before.
> 
> Signed-off-by: Przemyslaw Gaj <pgaj@cadence.com>

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

Thanks,

Boris

> ---
>  drivers/i3c/master/i3c-master-cdns.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/i3c/master/i3c-master-cdns.c b/drivers/i3c/master/i3c-master-cdns.c
> index 4f59942..02a8297 100644
> --- a/drivers/i3c/master/i3c-master-cdns.c
> +++ b/drivers/i3c/master/i3c-master-cdns.c
> @@ -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
linux-i3c@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-i3c

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-12-12 16:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1544614780-21553-1-git-send-email-pgaj@cadence.com>
2018-12-12 16:10 ` [PATCH] i3c: master: cdns: fix I2C transfers in Cadence I3C master driver Boris Brezillon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).