Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mmc: sh_mmcif: Configure DMA slave bus width

The data register is 4 bytes wide, hardcode the DMA transfer size to
4 bytes in both directions.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

authored by

Laurent Pinchart and committed by
Ulf Hansson
e36152aa d25006e7

+5 -2
+5 -2
drivers/mmc/host/sh_mmcif.c
··· 418 418 cfg.slave_id = slave_id; 419 419 cfg.direction = direction; 420 420 421 - if (direction == DMA_DEV_TO_MEM) 421 + if (direction == DMA_DEV_TO_MEM) { 422 422 cfg.src_addr = res->start + MMCIF_CE_DATA; 423 - else 423 + cfg.src_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; 424 + } else { 424 425 cfg.dst_addr = res->start + MMCIF_CE_DATA; 426 + cfg.dst_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; 427 + } 425 428 426 429 ret = dmaengine_slave_config(chan, &cfg); 427 430 if (ret < 0) {