Skip to content

Commit d7aefb2

Browse files
tasaitoUlf Hansson
authored andcommitted
mmc: renesas_sdhi_internal_dmac: Fix DMA buffer alignment from 8 to 128-bytes
According to the latest datasheet, the internal DMAC buffer alignment R-Car Gen3 SDHI HW should be 128-bytes. So, fix it. Signed-off-by: Takeshi Saito <takeshi.saito.xv@renesas.com> [shimoda: revise commit description, rebase] Fixes: 2a68ea7 ("mmc: renesas-sdhi: add support for R-Car Gen3 SDHI DMAC") Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Link: https://lore.kernel.org/r/1608114572-1892-2-git-send-email-yoshihiro.shimoda.uh@renesas.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent f16c8fd commit d7aefb2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/mmc/host/renesas_sdhi_internal_dmac.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,8 @@ renesas_sdhi_internal_dmac_start_dma(struct tmio_mmc_host *host,
186186
mmc_get_dma_dir(data)))
187187
goto force_pio;
188188

189-
/* This DMAC cannot handle if buffer is not 8-bytes alignment */
190-
if (!IS_ALIGNED(sg_dma_address(sg), 8))
189+
/* This DMAC cannot handle if buffer is not 128-bytes alignment */
190+
if (!IS_ALIGNED(sg_dma_address(sg), 128))
191191
goto force_pio_with_unmap;
192192

193193
if (data->flags & MMC_DATA_READ) {

0 commit comments

Comments
 (0)