This is a note to let you know that I've just added the patch titled mmc: core: Do a power cycle when the CMD11 fails to the 4.19-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: mmc-core-do-a-power-cycle-when-the-cmd11-fails.patch and it can be found in the queue-4.19 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 147186f531ae49c18b7a9091a2c40e83b3d95649 Mon Sep 17 00:00:00 2001 From: DooHyun Hwang <dh0421.hwang@xxxxxxxxxxx> Date: Wed, 10 Feb 2021 13:59:36 +0900 Subject: mmc: core: Do a power cycle when the CMD11 fails From: DooHyun Hwang <dh0421.hwang@xxxxxxxxxxx> commit 147186f531ae49c18b7a9091a2c40e83b3d95649 upstream. A CMD11 is sent to the SD/SDIO card to start the voltage switch procedure into 1.8V I/O. According to the SD spec a power cycle is needed of the card, if it turns out that the CMD11 fails. Let's fix this, to allow a retry of the initialization without the voltage switch, to succeed. Note that, whether it makes sense to also retry with the voltage switch after the power cycle is a bit more difficult to know. At this point, we treat it like the CMD11 isn't supported and therefore we skip it when retrying. Signed-off-by: DooHyun Hwang <dh0421.hwang@xxxxxxxxxxx> Link: https://lore.kernel.org/r/20210210045936.7809-1-dh0421.hwang@xxxxxxxxxxx Cc: stable@xxxxxxxxxxxxxxx Signed-off-by: Ulf Hansson <ulf.hansson@xxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/mmc/core/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c @@ -1537,7 +1537,7 @@ int mmc_set_uhs_voltage(struct mmc_host err = mmc_wait_for_cmd(host, &cmd, 0); if (err) - return err; + goto power_cycle; if (!mmc_host_is_spi(host) && (cmd.resp[0] & R1_ERROR)) return -EIO; Patches currently in stable-queue which might be from dh0421.hwang@xxxxxxxxxxx are queue-4.19/mmc-core-do-a-power-cycle-when-the-cmd11-fails.patch