mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v1] mmc: sdhci-msm: Enable aggressive PM
@ 2024-11-27  3:17 Yuanjie Yang
  2024-11-27  4:00 ` Dmitry Baryshkov
  0 siblings, 1 reply; 3+ messages in thread
From: Yuanjie Yang @ 2024-11-27  3:17 UTC (permalink / raw)
  To: adrian.hunter, ulf.hansson, linux-arm-msm, linux-mmc, linux-kernel
  Cc: quic_tingweiz, quic_zhgao, quic_yuanjiey

The sdhci-msm driver supports the device in both RUNNING
and IDLE states, when eMMC/SD are not reading or writing,
eMMC/SD are in IDLE state, the power management module
will suspend the device(power off and reduce frequency,
etc.), putting the device into a low-power mode. But the
current sdhci-msm driver cannot put device enter into
low-power mode.

Enable aggressive PM capability to support runtime PM
functionality, allowing the eMMC/SD card to enter
lowe-power mode.

Signed-off-by: Yuanjie Yang <quic_yuanjiey@quicinc.com>
---
 drivers/mmc/host/sdhci-msm.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/mmc/host/sdhci-msm.c b/drivers/mmc/host/sdhci-msm.c
index e00208535bd1..e3444d223513 100644
--- a/drivers/mmc/host/sdhci-msm.c
+++ b/drivers/mmc/host/sdhci-msm.c
@@ -2627,6 +2627,7 @@ static int sdhci_msm_probe(struct platform_device *pdev)
 	}
 
 	msm_host->mmc->caps |= MMC_CAP_WAIT_WHILE_BUSY | MMC_CAP_NEED_RSP_BUSY;
+	msm_host->mmc->caps |= MMC_CAP_AGGRESSIVE_PM;
 
 	/* Set the timeout value to max possible */
 	host->max_timeout_count = 0xF;
-- 
2.34.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-11-27  6:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-27  3:17 [PATCH v1] mmc: sdhci-msm: Enable aggressive PM Yuanjie Yang
2024-11-27  4:00 ` Dmitry Baryshkov
2024-11-27  6:01   ` Yuanjie Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®