Skip to content

Commit 0886040

Browse files
prabhakarladUlf Hansson
authored andcommitted
mmc: renesas_sdhi: Fix typo's
Fix typo's, * difference -> different * alignment -> aligned While at it updated the comment to make it clear that Renesas SDHI DMAC needs buffers to be 128-byte aligned. Reported-by: Pavel Machek <pavel@denx.de> Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Link: https://lore.kernel.org/r/20220624181438.4355-3-prabhakar.mahadev-lad.rj@bp.renesas.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent 0dac1e4 commit 0886040

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
@@ -322,7 +322,7 @@ renesas_sdhi_internal_dmac_dataend_dma(struct tmio_mmc_host *host)
322322
}
323323

324324
/*
325-
* renesas_sdhi_internal_dmac_map() will be called with two difference
325+
* renesas_sdhi_internal_dmac_map() will be called with two different
326326
* sg pointers in two mmc_data by .pre_req(), but tmio host can have a single
327327
* sg_ptr only. So, renesas_sdhi_internal_dmac_{un}map() should use a sg
328328
* pointer in a mmc_data instead of host->sg_ptr.
@@ -356,7 +356,7 @@ renesas_sdhi_internal_dmac_map(struct tmio_mmc_host *host,
356356

357357
data->host_cookie = cookie;
358358

359-
/* This DMAC cannot handle if buffer is not 128-bytes alignment */
359+
/* This DMAC needs buffers to be 128-byte aligned */
360360
if (!IS_ALIGNED(sg_dma_address(data->sg), 128)) {
361361
renesas_sdhi_internal_dmac_unmap(host, data, cookie);
362362
return false;

0 commit comments

Comments
 (0)