mmc: sdhci-sprd: disable polling scan for sdio card
Subsystems (3)
PATCH 1/1 mmc: sdhci-sprd: disable polling scan for sdio card
Enable polling will increase the power consumption of the host.
Fixes fb8bd90f83c4 ("mmc: sdhci-sprd: Add Spreadtrum's initial host controller")
Signed-off-by Wenchao Chen <[email protected]>
--- drivers/mmc/host/sdhci-sprd.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/mmc/host/sdhci-sprd.c +4 -0
@@ -696,6 +696,10 @@ static int sdhci_sprd_probe(struct platform_device *pdev)if (ret) goto err_cleanup_host; +if ((host->mmc->caps2 &MMC_CAP2_NO_SD ) && + (host->mmc->caps2 &MMC_CAP2_NO_MMC )) + host->mmc->caps &= ~MMC_CAP_NEEDS_POLL ; +pm_runtime_mark_last_busy (&pdev->dev);pm_runtime_put_autosuspend (&pdev->dev);
Signature · 1 line
2.17.1
Adrian Hunter
maintainerQuoted 13 lines · Wenchao Chen
Enable polling will increase the power consumption of the host.
Fixes fb8bd90f83c4 ("mmc: sdhci-sprd: Add Spreadtrum's initial host controller")Signed-off-by Wenchao Chen <[email protected]>--- drivers/mmc/host/sdhci-sprd.c | 4 ++++ 1 file changed, 4 insertions(+)drivers/mmc/host/sdhci-sprd.c +0
-0
drivers/mmc/host/sdhci-sprd.c static int sdhci_sprd_probe(struct platform_device *pdev) · line 701
Quoted 6 lines
drivers/mmc/host/sdhci-sprd.c +3
-0@@ -696,6 +696,10 @@ static int sdhci_sprd_probe(struct platform_device *pdev)if (ret) goto err_cleanup_host; +if ((host->mmc->caps2 &MMC_CAP2_NO_SD ) && + (host->mmc->caps2 &MMC_CAP2_NO_MMC )) + host->mmc->caps &= ~MMC_CAP_NEEDS_POLL ;
How is MMC_CAP_NEEDS_POLL getting set? SDHCI won't set it for non-removable cards. Is it removable?
Quoted 4 lines
drivers/mmc/host/sdhci-sprd.c +1
-0+pm_runtime_mark_last_busy (&pdev->dev);pm_runtime_put_autosuspend (&pdev->dev);