Re: [PATCH 02/38] mmc: sdhci-of-dwcmshc: use modern PM macros

From: Drew Fustini
Date: Mon Aug 18 2025 - 14:30:39 EST


On Fri, Aug 15, 2025 at 09:33:37AM +0800, Jisheng Zhang 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.
>
> 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.
>
> Signed-off-by: Jisheng Zhang <jszhang@xxxxxxxxxx>
> ---
> drivers/mmc/host/sdhci-of-dwcmshc.c | 13 +++----------
> 1 file changed, 3 insertions(+), 10 deletions(-)

Tested-by: Drew Fustini <fustini@xxxxxxxxxx> # for TH1520 on LPi4a