]> git.karo-electronics.de Git - linux-beck.git/commit
mmc: mmc: Relax checking for switch errors after HS200 switch
authorAdrian Hunter <adrian.hunter@intel.com>
Fri, 2 Dec 2016 11:16:35 +0000 (13:16 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 5 Dec 2016 13:15:46 +0000 (14:15 +0100)
commitef3d232245ab7a1bf361c52449e612e4c8b7c5ab
tree0e6d579644349f6efa511681faadaba24b9e9b58
parentdb52d4f8a4bde36263a7cc9d46ff20b243562ac9
mmc: mmc: Relax checking for switch errors after HS200 switch

The JEDEC specification indicates CMD13 can be used after a HS200 switch
to check for errors. However in practice some boards experience CRC errors
in the CMD13 response. Consequently, for HS200, CRC errors are not a
reliable way to know the switch failed. If there really is a problem, we
would expect tuning will fail and the result ends up the same. So change
the error condition to ignore CRC errors in that case.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Acked-by: Jaehoon Chung <jh80.chung@samsung.com>
Reviewed-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/mmc.c
drivers/mmc/core/mmc_ops.c
drivers/mmc/core/mmc_ops.h