On 16 July 2014 00:45, Laurent Pinchart
<[email protected]> wrote:
> The data register is 4 bytes wide, hardcode the DMA transfer size to
> 4 bytes in both directions.
>
> Signed-off-by: Laurent Pinchart <[email protected]>
Thanks! Applied for next.
Kind regards
Uffe
> ---
> drivers/mmc/host/sh_mmcif.c | 7 +++++--
> 1 file changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/mmc/host/sh_mmcif.c b/drivers/mmc/host/sh_mmcif.c
> index 436d663..cc8ae09 100644
> --- a/drivers/mmc/host/sh_mmcif.c
> +++ b/drivers/mmc/host/sh_mmcif.c
> @@ -418,10 +418,13 @@ sh_mmcif_request_dma_one(struct sh_mmcif_host *host,
> cfg.slave_id = slave_id;
> cfg.direction = direction;
>
> - if (direction == DMA_DEV_TO_MEM)
> + if (direction == DMA_DEV_TO_MEM) {
> cfg.src_addr = res->start + MMCIF_CE_DATA;
> - else
> + cfg.src_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES;
> + } else {
> cfg.dst_addr = res->start + MMCIF_CE_DATA;
> + cfg.dst_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES;
> + }
>
> ret = dmaengine_slave_config(chan, &cfg);
> if (ret < 0) {
> --
> 1.8.5.5
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html