mmc: block: prevent propagating R1_OUT_OF_RANGE for open-ending mode
authorShawn Lin <shawn.lin@rock-chips.com>
Fri, 18 Aug 2017 01:16:08 +0000 (09:16 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 21 Aug 2017 11:32:31 +0000 (13:32 +0200)
commitd83c2dbaa90a9bd6346e234d9802080a9c7b2fea
treebbc529eb3f0333c101858500bea1a656cb3a35a9
parent14ccee78fc82f5512908f4424f541549a5705b89
mmc: block: prevent propagating R1_OUT_OF_RANGE for open-ending mode

We to some extent should tolerate R1_OUT_OF_RANGE for open-ending
mode as it is expected behaviour and most of the backup partition
tables should be located near some of the last blocks which will
always make open-ending read exceed the capacity of cards.

Fixes: 9820a5b11101 ("mmc: core: for data errors, take response of stop cmd into account")
Fixes: a04e6bae9e6f ("mmc: core: check also R1 response for stop commands")
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Tested-by: Shawn Guo <shawnguo@kernel.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/block.c