On Fri, 15 Aug 2025 at 03:51, Jisheng Zhang <jszhang@kernel.org> wrote:
>
> Use the modern PM macros for the suspend and resume functions to be
> automatically dropped by the compiler when CONFIG_PM or
> CONFIG_PM_SLEEP are disabled, without having to use #ifdef guards or
> __maybe_unused.
>
> This has the advantage of always compiling these functions in,
> independently of any Kconfig option. Thanks to that, bugs and other
> regressions are subsequently easier to catch.
>
> Previously, I only cleaned up the host drivers which I used, e.g
> sdhci-of-dwcmshc, sdhci-pxav3 and sdhci-xenon, these are both compile
> tested and functionality tested. But then I also cleaned up other
> host drivers, but they are compile-tested only.
>
> Jisheng Zhang (38):
> sdhci: add some simple inline functions for !CONFIG_PM
> mmc: sdhci-of-dwcmshc: use modern PM macros
> mmc: sdhci-xenon: use modern PM macros
> mmc: sdhci-pxav3: use modern PM macros
> mmc: sunxi: use modern PM macros
> mmc: alcor: use modern PM macros
> mmc: atmel: use modern PM macros
> mmc: au1xmmc: use modern PM macros
> mmc: cb710-mmc: use modern PM macros
> mmc: davinci_mmc: use modern PM macros
> mmc: mmci: use modern PM macros
> mmc: mxs-mmc: use modern PM macros
> mmc: omap_hsmmc: use modern PM macros
> mmc: rtsx_usb_sdmmc: use modern PM macros
> mmc: sdhci-acpi: use modern PM macros
> mmc: sdhci_am654: use modern PM macros
> mmc: sdhci-brcmstb: use modern PM macros
> mmc: sdhci-esdhc-imx: use modern PM macros
> mmc: sdhci-of-arasan: use modern PM macros
> mmc: sdhci-of-at91: use modern PM macros
> mmc: sdhci-of-esdhc: use modern PM macros
> mmc: sdhci-omap: use modern PM macros
> mmc: sdhci-cadence: use modern PM macros
> mmc: sdhci-s3c: use modern PM macros
> mmc: sdhci-spear: use modern PM macros
> mmc: sdhci-sprd: use modern PM macros
> mmc: sdhci-st: use modern PM macros
> mmc: sdhci-tegra: use modern PM macros
> mmc: sh_mmicf: use modern PM macros
> mmc: toshsd: use modern PM macros
> mmc: wmt-sdmmc: use modern PM macros
> mmc: mtk-sd: use modern PM macros
> mmc: sdhci-msm: use modern PM macros
> mmc: via-sdmmc: use modern PM macros
> mmc: dw_mmc: exynos: use modern PM macros
> mmc: dw_mmc-k3: use modern PM macros
> mmc: dw_mmc-pci: use modern PM macros
> mmc: dw_mmc-rockchip: use modern PM macros
>
> drivers/mmc/host/alcor.c | 8 +++-----
> drivers/mmc/host/atmel-mci.c | 9 +++------
> drivers/mmc/host/au1xmmc.c | 18 +++++++-----------
> drivers/mmc/host/cb710-mmc.c | 19 +++++++++----------
> drivers/mmc/host/davinci_mmc.c | 14 +++-----------
> drivers/mmc/host/dw_mmc-exynos.c | 13 +++----------
> drivers/mmc/host/dw_mmc-k3.c | 9 +++------
> drivers/mmc/host/dw_mmc-pci.c | 9 +++------
> drivers/mmc/host/dw_mmc-rockchip.c | 9 +++------
> drivers/mmc/host/dw_mmc.h | 3 +++
> drivers/mmc/host/mmci.c | 9 +++------
> drivers/mmc/host/mtk-sd.c | 14 +++++++-------
> drivers/mmc/host/mxs-mmc.c | 6 ++----
> drivers/mmc/host/omap_hsmmc.c | 13 ++++---------
> drivers/mmc/host/rtsx_usb_sdmmc.c | 7 ++-----
> drivers/mmc/host/sdhci-acpi.c | 18 ++++--------------
> drivers/mmc/host/sdhci-brcmstb.c | 8 ++------
> drivers/mmc/host/sdhci-cadence.c | 8 ++------
> drivers/mmc/host/sdhci-esdhc-imx.c | 13 +++----------
> drivers/mmc/host/sdhci-msm.c | 21 +++++++++------------
> drivers/mmc/host/sdhci-of-arasan.c | 8 +++-----
> drivers/mmc/host/sdhci-of-at91.c | 12 +++---------
> drivers/mmc/host/sdhci-of-dwcmshc.c | 13 +++----------
> drivers/mmc/host/sdhci-of-esdhc.c | 8 ++------
> drivers/mmc/host/sdhci-omap.c | 18 +++++++-----------
> drivers/mmc/host/sdhci-pxav3.c | 11 +++--------
> drivers/mmc/host/sdhci-s3c.c | 11 +++--------
> drivers/mmc/host/sdhci-spear.c | 6 ++----
> drivers/mmc/host/sdhci-sprd.c | 10 +++-------
> drivers/mmc/host/sdhci-st.c | 6 ++----
> drivers/mmc/host/sdhci-tegra.c | 13 +++++--------
> drivers/mmc/host/sdhci-xenon.c | 13 +++----------
> drivers/mmc/host/sdhci.h | 7 +++++++
> drivers/mmc/host/sdhci_am654.c | 10 +++-------
> drivers/mmc/host/sh_mmcif.c | 8 ++------
> drivers/mmc/host/sunxi-mmc.c | 11 +++--------
> drivers/mmc/host/toshsd.c | 8 ++------
> drivers/mmc/host/via-sdmmc.c | 10 +++++-----
> drivers/mmc/host/wmt-sdmmc.c | 16 ++--------------
> 39 files changed, 141 insertions(+), 286 deletions(-)
>
> --
> 2.50.0
>
The series applied for next, thanks!
Kind regards
Uffe