projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f433e8a
)
mmc: sdhci-omap: Allow SDIO card power off and enable aggressive PM
author
Tony Lindgren
<tony@atomide.com>
Fri, 15 Oct 2021 10:47:19 +0000
(13:47 +0300)
committer
Ulf Hansson
<ulf.hansson@linaro.org>
Tue, 19 Oct 2021 11:01:46 +0000
(13:01 +0200)
Allow powering off SDIO cards and enable runtime PM for eMMC/SD card
devices. Without this, SDIO WLAN devices will not idle.
Signed-off-by: Tony Lindgren <tony@atomide.com>
Link:
https://lore.kernel.org/r/20211015104720.52240-6-tony@atomide.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-omap.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/host/sdhci-omap.c
b/drivers/mmc/host/sdhci-omap.c
index cdfe85824195fad7a9a057e0ff4d8a315d6fa06d..660f4d4c27a403ebb47e3ebd60ba4cb7e6357d6d 100644
(file)
--- a/
drivers/mmc/host/sdhci-omap.c
+++ b/
drivers/mmc/host/sdhci-omap.c
@@
-1343,6
+1343,9
@@
static int sdhci_omap_probe(struct platform_device *pdev)
/* R1B responses is required to properly manage HW busy detection. */
mmc->caps |= MMC_CAP_NEED_RSP_BUSY;
+ /* Allow card power off and runtime PM for eMMC/SD card devices */
+ mmc->caps |= MMC_CAP_POWER_OFF_CARD | MMC_CAP_AGGRESSIVE_PM;
+
ret = sdhci_setup_host(host);
if (ret)
goto err_rpm_put;