Skip to contentSkip to conversation

mmc: core: Remove legacy 'enable-sdio-wakeup' DT property support

PATCH In review Shawn Lin 2 participants 2 messages Mar 27 MMC, SD and SDIO

lore
Share & tools
lore

Shawn Lin

author
#0 lore raw

PATCH 1/1 mmc: core: Remove legacy 'enable-sdio-wakeup' DT property support

The 'enable-sdio-wakeup' device tree property was marked as legacy and superseded by the standard 'wakeup-source' property in commit 71a0151c5c82 ("Documentation: devicetree: fix reference to legacy wakeup properties") back in 2015.

Since it has been a decade and the migration to the standard property has long been completed, remove this obsolete legacy support.

---

 drivers/mmc/core/host.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/mmc/core/host.c +1 -2
index a457c88..4e1514b 100644
@@ -379,8 +379,7 @@ int mmc_of_parse(struct mmc_host *host)
 		host->caps2 |= MMC_CAP2_FULL_PWR_CYCLE_IN_SUSPEND;
 	if (device_property_read_bool(dev, "keep-power-in-suspend"))
 		host->pm_caps |= MMC_PM_KEEP_POWER;
-	if (device_property_read_bool(dev, "wakeup-source") ||
-	    device_property_read_bool(dev, "enable-sdio-wakeup")) /* legacy */
+	if (device_property_read_bool(dev, "wakeup-source"))
 		host->pm_caps |= MMC_PM_WAKE_SDIO_IRQ;
 	if (device_property_read_bool(dev, "mmc-ddr-3_3v"))
 		host->caps |= MMC_CAP_3_3V_DDR;
Signature · 1 line
2.7.4
#1 lore raw
Quoted 10 lines · Shawn Lin

The 'enable-sdio-wakeup' device tree property was marked as legacy and superseded by the standard 'wakeup-source' property in commit 71a0151c5c82 ("Documentation: devicetree: fix reference to legacy wakeup properties") back in 2015.

Since it has been a decade and the migration to the standard property has long been completed, remove this obsolete legacy support.

Applied for next, thanks!

Kind regards
Uffe

Quoted 22 lines

---

 drivers/mmc/core/host.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/mmc/core/host.c +1 -3
index a457c88..4e1514b 100644
@@ -379,8 +379,7 @@ int mmc_of_parse(struct mmc_host *host)
                host->caps2 |= MMC_CAP2_FULL_PWR_CYCLE_IN_SUSPEND;
        if (device_property_read_bool(dev, "keep-power-in-suspend"))
                host->pm_caps |= MMC_PM_KEEP_POWER;
-       if (device_property_read_bool(dev, "wakeup-source") ||
-           device_property_read_bool(dev, "enable-sdio-wakeup")) /* legacy */
+       if (device_property_read_bool(dev, "wakeup-source"))
                host->pm_caps |= MMC_PM_WAKE_SDIO_IRQ;
        if (device_property_read_bool(dev, "mmc-ddr-3_3v"))
                host->caps |= MMC_CAP_3_3V_DDR;
--

2.7.4