Skip to content

Commit

Permalink
mmc: sdhci-omap: Allow SDIO card power off and enable aggressive PM
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
tmlind authored and storulf committed Oct 19, 2021
1 parent f433e8a commit 3edf588
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/mmc/host/sdhci-omap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3edf588

Please sign in to comment.