linux_dsm_epyc7002/drivers/mmc/host
Al Cooper 658f58189a mmc: sdhci: Fix warning message when accessing RPMB in HS400 mode
commit d0244847f9fc5e20df8b7483c8a4717fe0432d38 upstream.

When an eMMC device is being run in HS400 mode, any access to the
RPMB device will cause the error message "mmc1: Invalid UHS-I mode
selected". This happens as a result of tuning being disabled before
RPMB access and then re-enabled after the RPMB access is complete.
When tuning is re-enabled, the system has to switch from HS400
to HS200 to do the tuning and then back to HS400. As part of
sequence to switch from HS400 to HS200 the system is temporarily
put into HS mode. When switching to HS mode, sdhci_get_preset_value()
is called and does not have support for HS mode and prints the warning
message and returns the preset for SDR12. The fix is to add support
for MMC and SD HS modes to sdhci_get_preset_value().

This can be reproduced on any system running eMMC in HS400 mode
(not HS400ES) by using the "mmc" utility to run the following
command: "mmc rpmb read-counter /dev/mmcblk0rpmb".

Signed-off-by: Al Cooper <alcooperx@gmail.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Fixes: 52983382c7 ("mmc: sdhci: enhance preset value function")
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20210624163045.33651-1-alcooperx@gmail.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-07-19 09:44:58 +02:00
..
alcor.c
android-goldfish.c
atmel-mci.c
au1xmmc.c
bcm2835.c
cavium-octeon.c
cavium-thunderx.c
cavium.c
cavium.h
cb710-mmc.c
cb710-mmc.h
cqhci.c
cqhci.h
davinci_mmc.c
dw_mmc-bluefield.c
dw_mmc-exynos.c
dw_mmc-exynos.h
dw_mmc-hi3798cv200.c
dw_mmc-k3.c
dw_mmc-pci.c
dw_mmc-pltfm.c
dw_mmc-pltfm.h
dw_mmc-rockchip.c
dw_mmc-zx.c
dw_mmc-zx.h
dw_mmc.c
dw_mmc.h
jz4740_mmc.c
Kconfig
Makefile
meson-gx-mmc.c mmc: meson-gx: use memcpy_to/fromio for dram-access-quirk 2021-06-30 08:47:16 -04:00
meson-mx-sdhc-clkc.c
meson-mx-sdhc-mmc.c
meson-mx-sdhc.h
meson-mx-sdio.c
mmc_hsq.c
mmc_hsq.h
mmc_spi.c
mmci_qcom_dml.c
mmci_stm32_sdmmc.c
mmci.c mmc: mmci: Add MMC_CAP_NEED_RSP_BUSY for the stm32 variants 2021-03-17 17:06:28 +01:00
mmci.h
moxart-mmc.c
mtk-sd.c mmc: mediatek: fix race condition between msdc_request_timeout and irq 2021-03-17 17:06:23 +01:00
mvsdio.c
mvsdio.h
mxcmmc.c
mxs-mmc.c mmc: mxs-mmc: Fix a resource leak in an error handling path in 'mxs_mmc_probe()' 2021-03-17 17:06:23 +01:00
of_mmc_spi.c
omap_hsmmc.c
omap.c
owl-mmc.c mmc: owl-mmc: Fix a resource leak in an error handling path and in the remove function 2021-03-04 11:38:02 +01:00
pxamci.c
pxamci.h
renesas_sdhi_core.c mmc: renesas_sdhi: Fix HS400 on R-Car M3-W+ 2021-06-16 12:01:41 +02:00
renesas_sdhi_internal_dmac.c mmc: renesas_sdhi_internal_dmac: Fix DMA buffer alignment from 8 to 128-bytes 2021-03-04 11:38:02 +01:00
renesas_sdhi_sys_dmac.c
renesas_sdhi.h
rtsx_pci_sdmmc.c
rtsx_usb_sdmmc.c
s3cmci.c
s3cmci.h
sdhci_am654.c
sdhci_f_sdh30.c
sdhci_f_sdh30.h
sdhci-acpi.c mmc: sdhci-acpi: Disable write protect detection on Toshiba Encore 2 WT8-B 2021-07-19 09:44:58 +02:00
sdhci-bcm-kona.c
sdhci-brcmstb.c mmc: sdhci-brcmstb: Remove CQE quirk 2021-05-11 14:47:26 +02:00
sdhci-cadence.c
sdhci-cns3xxx.c
sdhci-dove.c
sdhci-esdhc-imx.c mmc: sdhci-esdhc-imx: validate pinctrl before use it 2021-05-11 14:47:26 +02:00
sdhci-esdhc-mcf.c
sdhci-esdhc.h
sdhci-iproc.c mmc: sdhci-iproc: Add ACPI bindings for the RPi 2021-03-17 17:06:23 +01:00
sdhci-milbeaut.c
sdhci-msm.c
sdhci-of-arasan.c
sdhci-of-aspeed.c
sdhci-of-at91.c
sdhci-of-dwcmshc.c mmc: sdhci-of-dwcmshc: set SDHCI_QUIRK2_PRESET_VALUE_BROKEN 2021-03-11 14:17:28 +01:00
sdhci-of-esdhc.c
sdhci-of-hlwd.c
sdhci-of-sparx5.c
sdhci-omap.c
sdhci-pci-arasan.c
sdhci-pci-core.c mmc: sdhci-pci: Add PCI IDs for Intel LKF 2021-05-11 14:47:26 +02:00
sdhci-pci-data.c
sdhci-pci-dwc-mshc.c
sdhci-pci-gli.c mmc: sdhci-pci-gli: increase 1.8V regulator wait 2021-05-26 12:06:53 +02:00
sdhci-pci-o2micro.c mmc: sdhci-pci-o2micro: Bug fix for SDR104 HW tuning failure 2021-03-04 11:38:39 +01:00
sdhci-pci.h mmc: sdhci-pci: Add PCI IDs for Intel LKF 2021-05-11 14:47:26 +02:00
sdhci-pic32.c
sdhci-pltfm.c
sdhci-pltfm.h mmc: sdhci-pltfm: Fix linking err for sdhci-brcmstb 2021-02-10 09:29:18 +01:00
sdhci-pxav2.c
sdhci-pxav3.c
sdhci-s3c.c
sdhci-sirf.c
sdhci-spear.c
sdhci-sprd.c mmc: sdhci-sprd: use sdhci_sprd_writew 2021-07-14 16:55:54 +02:00
sdhci-st.c
sdhci-tegra.c mmc: sdhci-tegra: Add required callbacks to set/clear CQE_EN bit 2021-05-11 14:47:14 +02:00
sdhci-xenon-phy.c
sdhci-xenon.c mmc: sdhci-xenon: fix 1.8v regulator stabilization 2021-01-27 11:54:54 +01:00
sdhci-xenon.h
sdhci.c mmc: sdhci: Fix warning message when accessing RPMB in HS400 mode 2021-07-19 09:44:58 +02:00
sdhci.h mmc: sdhci: Fix warning message when accessing RPMB in HS400 mode 2021-07-19 09:44:58 +02:00
sdricoh_cs.c
sh_mmcif.c
sunxi-mmc.c
tifm_sd.c
tmio_mmc_core.c
tmio_mmc.c
tmio_mmc.h
toshsd.c
toshsd.h
uniphier-sd.c mmc: uniphier-sd: Fix a resource leak in the remove function 2021-05-11 14:47:14 +02:00
usdhi6rol0.c mmc: usdhi6rol0: fix error return code in usdhi6_probe() 2021-07-14 16:56:06 +02:00
ushc.c
via-sdmmc.c mmc: via-sdmmc: add a check against NULL pointer dereference 2021-07-14 16:55:54 +02:00
vub300.c mmc: vub3000: fix control-request direction 2021-07-14 16:56:54 +02:00
wbsd.c
wbsd.h
wmt-sdmmc.c