Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d5833a50 authored by Chris Boot's avatar Chris Boot Committed by Greg Kroah-Hartman
Browse files

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: default avatarChris Boot <bootc@bootc.net>
Signed-off-by: default avatarClément Péron <peron.clem@gmail.com>
Cc: stable@vger.kernel.org # v4.10+
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent bc183079
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment