]> git.baikalelectronics.ru Git - uboot.git/commit
mmc: tmio: sdhi: Use bounce buffer to avoid DMA limitations
authorMarek Vasut <marek.vasut@gmail.com>
Sat, 4 Apr 2020 10:45:04 +0000 (12:45 +0200)
committerPeng Fan <peng.fan@nxp.com>
Wed, 22 Apr 2020 12:41:56 +0000 (20:41 +0800)
commit3d58463bbdfc23864c278c1dab05c31af743e50d
treeae9d5ab9133f92cee21f71fd0f1b2be59c801c0a
parenta2f95511c218cc0323b2ff277158c6bff8be66f0
mmc: tmio: sdhi: Use bounce buffer to avoid DMA limitations

The R-Car SDHI DMA controller has various restrictions. To work around
those restrictions without falling back to PIO, implement bounce buffer
with custom alignment check function which tests for those limitations.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: Peng Fan <peng.fan@nxp.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Tom Rini <trini@konsulko.com>
drivers/mmc/Kconfig
drivers/mmc/renesas-sdhi.c