[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230118045749.3913296-1-chenhuiz@axis.com>
Date: Wed, 18 Jan 2023 12:57:49 +0800
From: Hermes Zhang <chenhuiz@...s.com>
To: Ulf Hansson <ulf.hansson@...aro.org>
CC: <kernel@...s.com>, Hermes Zhang <chenhuiz@...s.com>,
<linux-mmc@...r.kernel.org>, <linux-kernel@...r.kernel.org>
Subject: [PATCH] mmc: core: expose MMC_CAP_AGGRESSIVE_PM to DT
This patch expose the MMC_CAP_AGGRESSIVE_PM flag to DT which
allows the host to enable it from DT.
Signed-off-by: Hermes Zhang <chenhuiz@...s.com>
---
drivers/mmc/core/host.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/mmc/core/host.c b/drivers/mmc/core/host.c
index d17eda753b7e..1d98a301515d 100644
--- a/drivers/mmc/core/host.c
+++ b/drivers/mmc/core/host.c
@@ -376,6 +376,8 @@ int mmc_of_parse(struct mmc_host *host)
host->caps |= MMC_CAP_HW_RESET;
if (device_property_read_bool(dev, "cap-sdio-irq"))
host->caps |= MMC_CAP_SDIO_IRQ;
+ if (device_property_read_bool(dev, "cap-aggressive-pm"))
+ host->caps |= MMC_CAP_AGGRESSIVE_PM;
if (device_property_read_bool(dev, "full-pwr-cycle"))
host->caps2 |= MMC_CAP2_FULL_PWR_CYCLE;
if (device_property_read_bool(dev, "full-pwr-cycle-in-suspend"))
--
2.30.2
Powered by blists - more mailing lists