]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4ad27109eb670eef69f23c0fc268fa59ac9e97a5
treebbc529eb3f0333c101858500bea1a656cb3a35a9
parentac553adeaed389a4ca502af39e15420283aebeaf
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: ab17b419d028 ("mmc: core: for data errors, take response of stop cmd into account")
Fixes: 5f2607ba8598 ("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