OSDN Git Service

mmc: sdhci-pci: Workaround GLK firmware failing to restore the tuning value
authorAdrian Hunter <adrian.hunter@intel.com>
Mon, 19 Nov 2018 12:53:07 +0000 (14:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 1 Dec 2018 08:37:26 +0000 (09:37 +0100)
commit6d24302acc10279d6e4a02590b4ea06475b1f744
treef8942654f6d2488d2026950a08da94d53a19d464
parent52f4036282f79c93447c9eed734610a31ed933da
mmc: sdhci-pci: Workaround GLK firmware failing to restore the tuning value

commit 5305ec6a27b2dc7398a689e661a4a2e951026f09 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/host/sdhci-pci-core.c