linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ulf Hansson <ulf.hansson@linaro.org>
To: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Cc: Linux-sh list <linux-sh@vger.kernel.org>,
	linux-mmc <linux-mmc@vger.kernel.org>,
	Guennadi Liakhovetski <g.liakhovetski@gmx.de>,
	Ian Molton <ian.molton@codethink.co.uk>
Subject: Re: [PATCH 02/11] mmc: sh_mmcif: Fix DMA slave address configuration
Date: Sat, 26 Jul 2014 09:40:16 +0000	[thread overview]
Message-ID: <CAPDyKFoN6PxgPL0i3DF0T=xpEd9BX72m8sJ04eNMoq44Rk7FBQ@mail.gmail.com> (raw)
In-Reply-To: <1405464321-4723-3-git-send-email-laurent.pinchart+renesas@ideasonboard.com>

On 16 July 2014 00:45, Laurent Pinchart
<laurent.pinchart+renesas@ideasonboard.com> wrote:
> Commit e5a233cb647d749de2f188477c9a54b94d90477f ("mmc: sh_mmcif:
> Factorize DMA channel request and configuration code") incorrectly
> set the destination address for both slave channels instead of setting
> the source address for the receive channel. Fix that.
>
> Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>

Thanks! Applied for next.

Kind regards
Uffe


> ---
>  drivers/mmc/host/sh_mmcif.c | 10 +++++++---
>  1 file changed, 7 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/mmc/host/sh_mmcif.c b/drivers/mmc/host/sh_mmcif.c
> index 656fbba..436d663 100644
> --- a/drivers/mmc/host/sh_mmcif.c
> +++ b/drivers/mmc/host/sh_mmcif.c
> @@ -386,7 +386,7 @@ sh_mmcif_request_dma_one(struct sh_mmcif_host *host,
>                          struct sh_mmcif_plat_data *pdata,
>                          enum dma_transfer_direction direction)
>  {
> -       struct dma_slave_config cfg;
> +       struct dma_slave_config cfg = { 0, };
>         struct dma_chan *chan;
>         unsigned int slave_id;
>         struct resource *res;
> @@ -417,8 +417,12 @@ sh_mmcif_request_dma_one(struct sh_mmcif_host *host,
>         /* In the OF case the driver will get the slave ID from the DT */
>         cfg.slave_id = slave_id;
>         cfg.direction = direction;
> -       cfg.dst_addr = res->start + MMCIF_CE_DATA;
> -       cfg.src_addr = 0;
> +
> +       if (direction = DMA_DEV_TO_MEM)
> +               cfg.src_addr = res->start + MMCIF_CE_DATA;
> +       else
> +               cfg.dst_addr = res->start + MMCIF_CE_DATA;
> +
>         ret = dmaengine_slave_config(chan, &cfg);
>         if (ret < 0) {
>                 dma_release_channel(chan);
> --
> 1.8.5.5
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2014-07-26  9:40 UTC|newest]

Thread overview: 23+ 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 ` [PATCH 01/11] mmc: sh_mmcif: Document DT bindings Laurent Pinchart
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-26  9:40   ` Ulf Hansson [this message]
2014-07-15 22:45 ` [PATCH 03/11] mmc: sh_mmcif: Configure DMA slave bus width Laurent Pinchart
2014-07-26  9:40   ` Ulf Hansson
2014-07-15 22:45 ` [PATCH 04/11] mmc: tmio: " Laurent Pinchart
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-16  1:39   ` Kuninori Morimoto
2014-07-16  9:41     ` Laurent Pinchart
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 ` [PATCH 07/11] ARM: shmobile: r8a7791: Add MMCIF0 DT node 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 ` [PATCH 09/11] ARM: shmobile: r8a7791: Reference DMA channels in MMCIF DT node Laurent Pinchart
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-08-04  9:01   ` Geert Uytterhoeven
2014-08-04 14:03     ` Laurent Pinchart
2014-07-15 22:45 ` [PATCH 11/11] ARM: shmobile: r8a7791: " Laurent Pinchart
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='CAPDyKFoN6PxgPL0i3DF0T=xpEd9BX72m8sJ04eNMoq44Rk7FBQ@mail.gmail.com' \
    --to=ulf.hansson@linaro.org \
    --cc=g.liakhovetski@gmx.de \
    --cc=ian.molton@codethink.co.uk \
    --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 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).