diff options
author | Taras Kondratiuk <[email protected]> | 2016-07-13 22:05:38 +0000 |
---|---|---|
committer | Ulf Hansson <[email protected]> | 2016-07-18 11:47:01 +0200 |
commit | f68381a70bb2b26c31b13fdaf67c778f92fd32b4 (patch) | |
tree | ccc077b5f93b20bc7f6f0df92880b82486299a8a /lib/mpi/mpi-bit.c | |
parent | bfe5b1b1e013f7b1c0fd2ac3b3c8c380114b3fb9 (diff) |
mmc: block: fix packed command header endianness
The code that fills packed command header assumes that CPU runs in
little-endian mode. Hence the header is malformed in big-endian mode
and causes MMC data transfer errors:
[ 563.200828] mmcblk0: error -110 transferring data, sector 2048, nr 8, cmd response 0x900, card status 0xc40
[ 563.219647] mmcblk0: packed cmd failed, nr 2, sectors 16, failure index: -1
Convert header data to LE.
Signed-off-by: Taras Kondratiuk <[email protected]>
Fixes: ce39f9d17c14 ("mmc: support packed write command for eMMC4.5 devices")
Cc: <[email protected]>
Signed-off-by: Ulf Hansson <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions