]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
mmc: sdhci-pci: Fix default d3_retune for Intel host controllers
authorAdrian Hunter <adrian.hunter@intel.com>
Mon, 9 Oct 2017 07:24:01 +0000 (10:24 +0300)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Thu, 16 Nov 2017 13:23:14 +0000 (11:23 -0200)
BugLink: http://bugs.launchpad.net/bugs/1731951
commit eb701ce16a45ed9880897c48f05ee608d77c72e3 upstream.

The default for d3_retune is true, but that was not being set in all cases,
which results in eMMC errors because re-tuning has not been done.
Fix by initializing d3_retune to true.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Fixes: c959a6b00ff5 ("mmc: sdhci-pci: Don't re-tune with runtime pm for some Intel devices")
Reported-and-tested-by: ojab <ojab@ojab.ru>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
drivers/mmc/host/sdhci-pci-core.c

index ba8a0f58fe0815041d09517414956f9d95ad9acc..b2d0ee0be8c3e13ff427d371ee1b6e20779277be 100644 (file)
@@ -449,6 +449,8 @@ static void intel_dsm_init(struct intel_host *intel_host, struct device *dev,
        int err;
        u32 val;
 
+       intel_host->d3_retune = true;
+
        err = __intel_dsm(intel_host, dev, INTEL_DSM_FNS, &intel_host->dsm_fns);
        if (err) {
                pr_debug("%s: DSM not supported, error %d\n",