Linux-i3c Archive on lore.kernel.org
 help / 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; 1+ messages 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] 1+ messages in thread

only message in thread, back to index

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

Linux-i3c Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-i3c/0 linux-i3c/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-i3c linux-i3c/ https://lore.kernel.org/linux-i3c \
		linux-i3c@lists.infradead.org linux-i3c@archiver.kernel.org
	public-inbox-index linux-i3c


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.infradead.lists.linux-i3c


AGPL code for this site: git clone https://public-inbox.org/ public-inbox