]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
mmc: core: Remove legacy 'enable-sdio-wakeup' DT property support
authorShawn Lin <shawn.lin@rock-chips.com>
Fri, 27 Mar 2026 04:07:29 +0000 (12:07 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Fri, 27 Mar 2026 09:24:51 +0000 (10:24 +0100)
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.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/host.c

index a457c88fdcbc7ad1e148df600618d26c5b5fa427..4e1514bda65bff62aa8bee85a321fd5c5443a395 100644 (file)
@@ -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;