mmc: tmio: sdhi: Add DMA transfer address alignment check at writing
authorHiroyuki Yokoyama <hiroyuki.yokoyama.vx@renesas.com>
Sat, 7 Mar 2020 16:32:59 +0000 (17:32 +0100)
committerPeng Fan <peng.fan@nxp.com>
Tue, 21 Apr 2020 02:12:15 +0000 (10:12 +0800)
commit902af10d67520bf5535b660bff2b28a98c194022
treee9f727d7773d2a63ed2cf1b1ba0d7052b8866b68
parente4837da7828293ea49abc579f939c0f5c4b127c3
mmc: tmio: sdhi: Add DMA transfer address alignment check at writing

In R-Car Gen 3, there is a DMA controller restriction of SDHI.
When the transfer exceeding the 4 kByte boundary is performed while
the DRAM address is not 128 byte aligned, the bus is occupied.
This patch avoids this.

Signed-off-by: Hiroyuki Yokoyama <hiroyuki.yokoyama.vx@renesas.com>
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
drivers/mmc/tmio-common.c