mmc: sunxi-mmc: change idma descriptor to __le32
authorMichael Weiser <michael.weiser@gmx.de>
Mon, 22 Aug 2016 16:42:18 +0000 (18:42 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 26 Sep 2016 19:31:13 +0000 (21:31 +0200)
commit2dd110b27d6621e881c796d1aea97da1b3143a5d
treeefefe65bf735b7a9ce28dbcacabfad5a8d5b2f7f
parent63311bece02abad40ae442e6deba2a2e522949fb
mmc: sunxi-mmc: change idma descriptor to __le32

The sunxi-mmc driver does not take into account the processor may be big
endian when writing the DMA descriptors. This causes cards not to be
detected when running a big-endian kernel. Change the descriptors for
IDMA to use __le32 and ensure they are suitably swapped before writing.
Tested successfully on the Cubieboard2.

Signed-off-by: Michael Weiser <michael.weiser@gmx.de>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Cc: Ulf Hansson <ulf.hansson@linaro.org>
Cc: Chen-Yu Tsai <wens@csie.org>
Cc: linux-mmc@vger.kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sunxi-mmc.c