]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
mmc: block: Add CMD13 polling for MMC IOCTLS with R1B response
authorChaotian Jing <chaotian.jing@mediatek.com>
Thu, 5 Sep 2019 07:53:18 +0000 (15:53 +0800)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 29 Jan 2020 04:58:30 +0000 (23:58 -0500)
commit80c71f3280fc330543d79a2990a5b7b447b67d8f
treeb2bcdd06177982f0f724d198994450d0f93dab9d
parent6e3235a910cbec3a3fa9edfa79595a21a2b9cb35
mmc: block: Add CMD13 polling for MMC IOCTLS with R1B response

BugLink: https://bugs.launchpad.net/bugs/1860179
commit a0d4c7eb71dd08a89ad631177bb0cbbabd598f84 upstream.

MMC IOCTLS with R1B responses may cause the card to enter the busy state,
which means it's not ready to receive a new request. To prevent new
requests from being sent to the card, use a CMD13 polling loop to verify
that the card returns to the transfer state, before completing the request.

Signed-off-by: Chaotian Jing <chaotian.jing@mediatek.com>
Reviewed-by: Avri Altman <avri.altman@wdc.com>
Cc: stable@vger.kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Connor Kuehl <connor.kuehl@canonical.com>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/mmc/core/block.c