]> 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)
commit06e1cb2220831b1b999ead54b7a03860bb427cbb
treebbc529eb3f0333c101858500bea1a656cb3a35a9
parentb69f9ae530642ece2cbfa430a679c3b330c65600
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: 04607b24c24e ("mmc: core: for data errors, take response of stop cmd into account")
Fixes: b7a8c6469abd ("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