Skip to content
Commit 2cf9bfe9 authored by Raul E Rangel's avatar Raul E Rangel Committed by Ulf Hansson
Browse files

mmc: sdhci-acpi: Clear amd_sdhci_host on reset



The commit 61d7437e ("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: 61d7437e ("mmc: sdhci-acpi: Fix HS400 tuning for AMDI0040")
Signed-off-by: default avatarRaul E Rangel <rrangel@chromium.org>
Acked-by: default avatarAdrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/20200831150517.1.I93c78bfc6575771bb653c9d3fca5eb018a08417d@changeid


Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent f4d51dff
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment