All of lore.kernel.org
 help / color / mirror / Atom feed
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>,
	linux-sh@vger.kernel.org, linux-mmc@vger.kernel.org,
	Guennadi Liakhovetski <g.liakhovetski@gmx.de>,
	Ian Molton <ian.molton@codethink.co.uk>
Subject: Re: [PATCH 05/11] mmc: tmio: Fix DMA source address
Date: Wed, 16 Jul 2014 11:41:38 +0200	[thread overview]
Message-ID: <3064066.cLMrQSJucc@avalon> (raw)
In-Reply-To: <87r41mkrpl.wl%kuninori.morimoto.gx@renesas.com>

Hi Morimoto-san,

Thank you for the review.

On Tuesday 15 July 2014 18:39:04 Kuninori Morimoto wrote:
> Hi Laurent
> 
> > DMA reads from the data buffer register must be offset by 0x2000
> > according to the hardware documentation.
> > 
> > Signed-off-by: Laurent Pinchart
> > <laurent.pinchart+renesas@ideasonboard.com>
> > ---
> > 
> >  drivers/mmc/host/tmio_mmc_dma.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/drivers/mmc/host/tmio_mmc_dma.c
> > b/drivers/mmc/host/tmio_mmc_dma.c index eb8f1d5..4da7be1 100644
> > --- a/drivers/mmc/host/tmio_mmc_dma.c
> > +++ b/drivers/mmc/host/tmio_mmc_dma.c
> > @@ -312,7 +312,7 @@ void tmio_mmc_request_dma(struct tmio_mmc_host *host,
> > struct tmio_mmc_data *pdat> 
> >  		if (pdata->dma->chan_priv_rx)
> >  		
> >  			cfg.slave_id = pdata->dma->slave_id_rx;
> >  		
> >  		cfg.direction = DMA_DEV_TO_MEM;
> > 
> > -		cfg.src_addr = cfg.dst_addr;
> > +		cfg.src_addr = cfg.dst_addr + 0x2000;
> > 
> >  		cfg.src_addr_width = DMA_SLAVE_BUSWIDTH_2_BYTES;
> >  		cfg.dst_addr = 0;
> >  		ret = dmaengine_slave_config(host->chan_rx, &cfg);
> 
> Unfortunately, this patch breaks compatibility.
> This "+ 0x2000" is required only from Renesas R-Car.
> I alreay sent this fixup patch before (not accepted yet, and I will re-send
> v2 patch soon)
> 
> https://www.mail-archive.com/linux-mmc@vger.kernel.org/msg26776.html

I've applied your patch locally, thank you. You can add my Acked-by line to 
v2. When do you plan to push it to mainline ?

-- 
Regards,

Laurent Pinchart


WARNING: multiple messages have this Message-ID (diff)
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>,
	linux-sh@vger.kernel.org, linux-mmc@vger.kernel.org,
	Guennadi Liakhovetski <g.liakhovetski@gmx.de>,
	Ian Molton <ian.molton@codethink.co.uk>
Subject: Re: [PATCH 05/11] mmc: tmio: Fix DMA source address
Date: Wed, 16 Jul 2014 09:41:38 +0000	[thread overview]
Message-ID: <3064066.cLMrQSJucc@avalon> (raw)
In-Reply-To: <87r41mkrpl.wl%kuninori.morimoto.gx@renesas.com>

Hi Morimoto-san,

Thank you for the review.

On Tuesday 15 July 2014 18:39:04 Kuninori Morimoto wrote:
> Hi Laurent
> 
> > DMA reads from the data buffer register must be offset by 0x2000
> > according to the hardware documentation.
> > 
> > Signed-off-by: Laurent Pinchart
> > <laurent.pinchart+renesas@ideasonboard.com>
> > ---
> > 
> >  drivers/mmc/host/tmio_mmc_dma.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/drivers/mmc/host/tmio_mmc_dma.c
> > b/drivers/mmc/host/tmio_mmc_dma.c index eb8f1d5..4da7be1 100644
> > --- a/drivers/mmc/host/tmio_mmc_dma.c
> > +++ b/drivers/mmc/host/tmio_mmc_dma.c
> > @@ -312,7 +312,7 @@ void tmio_mmc_request_dma(struct tmio_mmc_host *host,
> > struct tmio_mmc_data *pdat> 
> >  		if (pdata->dma->chan_priv_rx)
> >  		
> >  			cfg.slave_id = pdata->dma->slave_id_rx;
> >  		
> >  		cfg.direction = DMA_DEV_TO_MEM;
> > 
> > -		cfg.src_addr = cfg.dst_addr;
> > +		cfg.src_addr = cfg.dst_addr + 0x2000;
> > 
> >  		cfg.src_addr_width = DMA_SLAVE_BUSWIDTH_2_BYTES;
> >  		cfg.dst_addr = 0;
> >  		ret = dmaengine_slave_config(host->chan_rx, &cfg);
> 
> Unfortunately, this patch breaks compatibility.
> This "+ 0x2000" is required only from Renesas R-Car.
> I alreay sent this fixup patch before (not accepted yet, and I will re-send
> v2 patch soon)
> 
> https://www.mail-archive.com/linux-mmc@vger.kernel.org/msg26776.html

I've applied your patch locally, thank you. You can add my Acked-by line to 
v2. When do you plan to push it to mainline ?

-- 
Regards,

Laurent Pinchart


  reply	other threads:[~2014-07-16  9:41 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-15 22:45 [PATCH 00/11] MMCIF and SDHI DMA support in DT for R-Car H2 and M2 Laurent Pinchart
2014-07-15 22:45 ` Laurent Pinchart
2014-07-15 22:45 ` [PATCH 01/11] mmc: sh_mmcif: Document DT bindings Laurent Pinchart
2014-07-15 22:45   ` Laurent Pinchart
2014-07-26  9:39   ` Ulf Hansson
2014-07-26  9:39     ` Ulf Hansson
2014-07-15 22:45 ` [PATCH 02/11] mmc: sh_mmcif: Fix DMA slave address configuration Laurent Pinchart
2014-07-15 22:45   ` Laurent Pinchart
2014-07-26  9:40   ` Ulf Hansson
2014-07-26  9:40     ` Ulf Hansson
2014-07-15 22:45 ` [PATCH 03/11] mmc: sh_mmcif: Configure DMA slave bus width Laurent Pinchart
2014-07-15 22:45   ` Laurent Pinchart
2014-07-26  9:40   ` Ulf Hansson
2014-07-26  9:40     ` Ulf Hansson
2014-07-15 22:45 ` [PATCH 04/11] mmc: tmio: " Laurent Pinchart
2014-07-15 22:45   ` Laurent Pinchart
2014-07-26  9:41   ` Ulf Hansson
2014-07-26  9:41     ` Ulf Hansson
2014-07-15 22:45 ` [PATCH 05/11] mmc: tmio: Fix DMA source address Laurent Pinchart
2014-07-15 22:45   ` Laurent Pinchart
2014-07-16  1:39   ` Kuninori Morimoto
2014-07-16  1:39     ` Kuninori Morimoto
2014-07-16  9:41     ` Laurent Pinchart [this message]
2014-07-16  9:41       ` Laurent Pinchart
2014-07-17  1:00       ` Kuninori Morimoto
2014-07-17  1:00         ` Kuninori Morimoto
2014-07-15 22:45 ` [PATCH 06/11] ARM: shmobile: r8a7790: Rename mmcif node to mmc Laurent Pinchart
2014-07-15 22:45   ` Laurent Pinchart
2014-07-15 22:45 ` [PATCH 07/11] ARM: shmobile: r8a7791: Add MMCIF0 DT node Laurent Pinchart
2014-07-15 22:45   ` Laurent Pinchart
2014-07-15 22:45 ` [PATCH 08/11] ARM: shmobile: r8a7790: Reference DMA channels in MMCIF DT nodes Laurent Pinchart
2014-07-15 22:45   ` Laurent Pinchart
2014-07-15 22:45 ` [PATCH 09/11] ARM: shmobile: r8a7791: Reference DMA channels in MMCIF DT node Laurent Pinchart
2014-07-15 22:45   ` Laurent Pinchart
2014-08-04  8:49   ` Geert Uytterhoeven
2014-08-04  8:49     ` Geert Uytterhoeven
2014-07-15 22:45 ` [PATCH 10/11] ARM: shmobile: r8a7790: Reference DMA channels in SDHI DT nodes Laurent Pinchart
2014-07-15 22:45   ` Laurent Pinchart
2014-08-04  9:01   ` Geert Uytterhoeven
2014-08-04  9:01     ` Geert Uytterhoeven
2014-08-04 14:03     ` Laurent Pinchart
2014-08-04 14:03       ` Laurent Pinchart
2014-07-15 22:45 ` [PATCH 11/11] ARM: shmobile: r8a7791: " Laurent Pinchart
2014-07-15 22:45   ` Laurent Pinchart
2014-08-04  9:01   ` Geert Uytterhoeven
2014-08-04  9:01     ` Geert Uytterhoeven

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3064066.cLMrQSJucc@avalon \
    --to=laurent.pinchart@ideasonboard.com \
    --cc=g.liakhovetski@gmx.de \
    --cc=ian.molton@codethink.co.uk \
    --cc=kuninori.morimoto.gx@renesas.com \
    --cc=laurent.pinchart+renesas@ideasonboard.com \
    --cc=linux-mmc@vger.kernel.org \
    --cc=linux-sh@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.