]> git.baikalelectronics.ru Git - kernel.git/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)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 9 Oct 2018 07:23:00 +0000 (09:23 +0200)
commit4b642a64c5c87dbf1c70a08e10610e5609d487a7
tree78a25d39a5515767dea363d066aafc0ee459f1f8
parente4c85abf576d2ba32bcd571a0c907949023afdc4
mmc: block: avoid multiblock reads for the last sector in SPI mode

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>
drivers/mmc/core/block.c