linux/drivers/mmc/card
Taras Kondratiuk a6889df540 mmc: block: fix packed command header endianness
commit f68381a70b upstream.

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 <takondra@cisco.com>
Fixes: ce39f9d17c ("mmc: support packed write command for eMMC4.5 devices")
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
History 2016-11-20 01:16:53 +00:00
..
block.c mmc: block: fix packed command header endianness 2016-11-20 01:16:53 +00:00
Kconfig tty: Added a CONFIG_TTY option to allow removal of TTY 2013-01-18 16:15:27 -08:00
Makefile mmc: Makefile: Fix EXTRA_CFLAGS assignment 2010-10-23 21:11:15 +08:00
mmc_test.c mmc: mmc_test: replace strict_strtol() with kstrtol_from_user() 2013-08-24 23:19:05 -04:00
queue.c mmc: card: Don't access RPMB partitions for normal read/write 2015-05-20 13:26:16 +01:00
queue.h mmc: card: Don't access RPMB partitions for normal read/write 2015-05-20 13:26:16 +01:00
sdio_uart.c TTY: add tty_port_tty_hangup helper 2013-03-18 16:24:29 -07:00