]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ENGR00319936-1 mmc: sdhci-esdhc-imx: do not enable wakeup by default
authorDong Aisheng <b29396@freescale.com>
Tue, 24 Jun 2014 09:25:03 +0000 (17:25 +0800)
committerNitin Garg <nitin.garg@freescale.com>
Fri, 16 Jan 2015 03:18:01 +0000 (21:18 -0600)
After adding mega fast support, the default enabled usdhc wakeup will block
M/F to gate off power domain.
To avoid this issue, we only claim wakeup capability and reply on user to enable
it via sysfs according to real needs.
The drawback of such change is that for SDIO WiFi Wakeup On Wireless feature,
User has to enable both uSDHC and WiFi WoW wakeup mannually to make
WoW work well.

BTW, due to the wakeup feature is controller itself, so we do not need to reply
on WiFi PM flags to enable it.

Signed-off-by: Dong Aisheng <b29396@freescale.com>
(cherry picked from commit 58f91ff6f6719fef44f5122ae1d8a5df7e0061d5)

drivers/mmc/host/sdhci-esdhc-imx.c

index 6d5d31af3101f9ec046309aadbabf8f0fdc1b760..2232aa6a20a0531669e2c19637d2f6c9fc9adb8f 100644 (file)
@@ -1156,9 +1156,7 @@ static int sdhci_esdhc_imx_probe(struct platform_device *pdev)
                host->quirks2 |= SDHCI_QUIRK2_NO_1_8_V;
        }
 
-       if (host->mmc->pm_caps & MMC_PM_KEEP_POWER &&
-               host->mmc->pm_caps & MMC_PM_WAKE_SDIO_IRQ)
-               device_init_wakeup(&pdev->dev, 1);
+       device_set_wakeup_capable(&pdev->dev, 1);
 
        err = sdhci_add_host(host);
        if (err)