]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
commit41591b38f5f8f78344954b68582b5f00e56ffe61
tree78a25d39a5515767dea363d066aafc0ee459f1f8
parent0238df646e6224016a45505d2c111a24669ebe21
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