]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
mmc: core: Fix UHS-I SD 1.8V workaround branch
authorAdrian Hunter <adrian.hunter@intel.com>
Mon, 15 Aug 2022 07:33:20 +0000 (10:33 +0300)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 23 Nov 2022 14:10:52 +0000 (15:10 +0100)
commit9ef6be1a8710dc9f15e33d050df5a10d6a2114ec
treeed1aaee9caabced0f65221058228582ce7e379a1
parent05500b921753435a150ae0ef0d5c52cd4707eb57
mmc: core: Fix UHS-I SD 1.8V workaround branch

BugLink: https://bugs.launchpad.net/bugs/1991840
commit 15c56208c79c340686869c31595c209d1431c5e8 upstream.

When introduced, upon success, the 1.8V fixup workaround in
mmc_sd_init_card() would branch to practically the end of the function, to
a label named "done". Unfortunately, perhaps due to the label name, over
time new code has been added that really should have come after "done" not
before it. Let's fix the problem by moving the label to the correct place
and rename it "cont".

Fixes: 045d705dc1fb ("mmc: core: Enable the MMC host software queue for the SD card")
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Reviewed-by: Seunghui Lee <sh043.lee@samsung.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20220815073321.63382-2-adrian.hunter@intel.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/mmc/core/sd.c