]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mmc: host: omap_hsmmc: Add CMD23 capability to omap_hsmmc driver
authorKishon Vijay Abraham I <kishon@ti.com>
Tue, 8 Aug 2017 05:18:15 +0000 (10:48 +0530)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 8 Aug 2017 08:11:07 +0000 (10:11 +0200)
commitac2b21157a3104ad2daa21c65e6cc73604edba0b
treeaf0466c50e9064519cc3f5e057e58a2e0e7e1cc9
parentaae4e7a8bc44722fe70d58920a36916b1043195e
mmc: host: omap_hsmmc: Add CMD23 capability to omap_hsmmc driver

omap_hsmmc driver always relied on CMD12 to stop transmission.
However if CMD12 is not issued at the correct timing, the card will
indicate a out of range error. With certain cards in some of the
DRA7 based boards, -EIO error is observed. By Adding CMD23 capability,
the MMC core will send MMC_SET_BLOCK_COUNT command before
MMC_READ_MULTIPLE_BLOCK/MMC_WRITE_MULTIPLE_BLOCK commands.

commit a04e6bae9e6f12 ("mmc: core: check also R1 response for
stop commands") exposed this bug in omap_hsmmc driver.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/omap_hsmmc.c