mmc: dw_mmc: change idmac descriptor files to __le32
authorBen Dooks <ben.dooks@codethink.co.uk>
Wed, 25 Mar 2015 11:27:51 +0000 (11:27 +0000)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 9 Apr 2015 07:08:10 +0000 (09:08 +0200)
commit6687c42fa71acd6ae39608c5af4146c82bd0c0ea
tree49fd747ffe8322cf27da16390427d5eaee8f34c7
parenta2f17680f42878ee8d55a5e66c1466465a412f62
mmc: dw_mmc: change idmac descriptor files to __le32

The dw_mmc driver does not take into account the processor may be in
big endian when writing the descriptors. Change the descriptors for
the 32bit IDMA to use __le32 and ensure they are suitably swapped
before writing.

Note, this has not been tested as the socfpga driver does not try to
use idma.

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/dw_mmc.c