mmc: sdhci-pci: Workaround GLK firmware failing to restore the tuning value
commit5305ec6a27b2dc7398a689e661a4a2e951026f09
authorAdrian Hunter <adrian.hunter@intel.com>
Mon, 19 Nov 2018 12:53:07 +0000 (19 14:53 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 19 Nov 2018 13:11:07 +0000 (19 14:11 +0100)
tree55ee2c2e658d9026fd46c62f5bf1f35ba6ee7d38
parentcdcefe6bd9df754f528ffc339d3cc143cea4ddf6
mmc: sdhci-pci: Workaround GLK firmware failing to restore the tuning value

GLK firmware can indicate that the tuning value will be restored after
runtime suspend, but not actually do that. Add a workaround that detects
such cases, and lets the driver do re-tuning instead.

Reported-by: Anisse Astier <anisse@astier.eu>
Tested-by: Anisse Astier <anisse@astier.eu>
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: stable@vger.kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-pci-core.c