]> git.hungrycats.org Git - linux/commit
mmc: block: avoid multiblock reads for the last sector in SPI mode
authorChris Boot <bootc@bootc.net>
Mon, 8 Oct 2018 15:07:30 +0000 (17:07 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Oct 2018 07:18:19 +0000 (09:18 +0200)
commit3df1331f63cd4cf5de66ca5a46ec61edacbe63e5
tree602c2b62ba4ad9e78ffc5aedc8172f9c4cbcb36b
parent7088776eb06a8000c1a6360ccd47d6925ad0120d
mmc: block: avoid multiblock reads for the last sector in SPI mode

commit 41591b38f5f8f78344954b68582b5f00e56ffe61 upstream.

On some SD cards over SPI, reading with the multiblock read command the last
sector will leave the card in a bad state.

Remove last sectors from the multiblock reading cmd.

Signed-off-by: Chris Boot <bootc@bootc.net>
Signed-off-by: Clément Péron <peron.clem@gmail.com>
Cc: stable@vger.kernel.org # v4.10+
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/core/block.c