]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: core: check also R1 response for stop commands
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Sat, 8 Apr 2017 20:20:05 +0000 (22:20 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 20 Jun 2017 08:30:47 +0000 (10:30 +0200)
commitb7a8c6469abd0775984082b31c5888dff1e6cee6
tree4f34927a372395d54340208961f496b84d4ae791
parent73d486349510e6303ec081a37a96fc91e0564b8c
mmc: core: check also R1 response for stop commands

To detect errors like ECC errors, we must parse the R1 response bits. Introduce
a helper function to also set the error value of a command when R1 error bits
are set. Add ECC error to list of flags checked. Use the new helper for the
stop command to call mmc_blk_recovery when detecting ECC errors which are only
flagged on the next command after multiblock.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Tested-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/block.c