]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdhci-acpi: Clear amd_sdhci_host on reset
authorRaul E Rangel <rrangel@chromium.org>
Mon, 31 Aug 2020 21:10:32 +0000 (15:10 -0600)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 7 Sep 2020 06:57:44 +0000 (08:57 +0200)
commit4a96cb088e123f34f3b0444e86668d326d5f0df9
treeae43ebd3aac788f05c5daeba51d4e5e1f5744231
parent9d314c4d53fdbaeff121a0893324d08cb4107329
mmc: sdhci-acpi: Clear amd_sdhci_host on reset

The commit f01a208e163fa ("mmc: sdhci-acpi: Fix HS400 tuning for AMDI0040")
broke resume for eMMC HS400. When the system suspends the eMMC controller
is powered down. So, on resume we need to reinitialize the controller.
Although, amd_sdhci_host was not getting cleared, so the DLL was never
re-enabled on resume. This results in HS400 being non-functional.

To fix the problem, this change clears the tuned_clock flag, clears the
dll_enabled flag and disables the DLL on reset.

Fixes: f01a208e163fa ("mmc: sdhci-acpi: Fix HS400 tuning for AMDI0040")
Signed-off-by: Raul E Rangel <rrangel@chromium.org>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/20200831150517.1.I93c78bfc6575771bb653c9d3fca5eb018a08417d@changeid
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-acpi.c