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)
commitd2661d8e9f9e83cb15ab981cb42e84c51bd85c2d
treeae9d5ab9133f92cee21f71fd0f1b2be59c801c0a
parent80a624f2f06b2b314795d9191bb7e29cd84e7f13
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