aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2014-07-15 18:45:14 -0400
committerUlf Hansson <ulf.hansson@linaro.org>2014-07-26 05:38:19 -0400
commit39ab196243e8732ad68928be97129305b29afbbd (patch)
treebed0e9bb44e94d0cd6d381bb16f67fc5e6110e65 /drivers/mmc/host
parente36152aa84cf68bd7f09acffd480cd2b6aa5480d (diff)
mmc: tmio: Configure DMA slave bus width
Even though some implementations support 4-bytes data register access, the tmio driver never configures the hardware in such a way and always performs 2-bytes accesses. Hardcode the DMA transfer size to 2 bytes. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host')
-rw-r--r--drivers/mmc/host/tmio_mmc_dma.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mmc/host/tmio_mmc_dma.c b/drivers/mmc/host/tmio_mmc_dma.c
index 03e7b280cb4c..eb8f1d5c34b1 100644
--- a/drivers/mmc/host/tmio_mmc_dma.c
+++ b/drivers/mmc/host/tmio_mmc_dma.c
@@ -294,6 +294,7 @@ void tmio_mmc_request_dma(struct tmio_mmc_host *host, struct tmio_mmc_data *pdat
294 cfg.slave_id = pdata->dma->slave_id_tx; 294 cfg.slave_id = pdata->dma->slave_id_tx;
295 cfg.direction = DMA_MEM_TO_DEV; 295 cfg.direction = DMA_MEM_TO_DEV;
296 cfg.dst_addr = res->start + (CTL_SD_DATA_PORT << host->pdata->bus_shift); 296 cfg.dst_addr = res->start + (CTL_SD_DATA_PORT << host->pdata->bus_shift);
297 cfg.dst_addr_width = DMA_SLAVE_BUSWIDTH_2_BYTES;
297 cfg.src_addr = 0; 298 cfg.src_addr = 0;
298 ret = dmaengine_slave_config(host->chan_tx, &cfg); 299 ret = dmaengine_slave_config(host->chan_tx, &cfg);
299 if (ret < 0) 300 if (ret < 0)
@@ -312,6 +313,7 @@ void tmio_mmc_request_dma(struct tmio_mmc_host *host, struct tmio_mmc_data *pdat
312 cfg.slave_id = pdata->dma->slave_id_rx; 313 cfg.slave_id = pdata->dma->slave_id_rx;
313 cfg.direction = DMA_DEV_TO_MEM; 314 cfg.direction = DMA_DEV_TO_MEM;
314 cfg.src_addr = cfg.dst_addr; 315 cfg.src_addr = cfg.dst_addr;
316 cfg.src_addr_width = DMA_SLAVE_BUSWIDTH_2_BYTES;
315 cfg.dst_addr = 0; 317 cfg.dst_addr = 0;
316 ret = dmaengine_slave_config(host->chan_rx, &cfg); 318 ret = dmaengine_slave_config(host->chan_rx, &cfg);
317 if (ret < 0) 319 if (ret < 0)