On 15/08/2025 04:33, Jisheng Zhang wrote:
> In next commits, we will switch to the modern PM macros.
>
> Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Subject would normally begin: "mmc: sdhci: ", otherwise:
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
> ---
> drivers/mmc/host/sdhci.h | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/drivers/mmc/host/sdhci.h b/drivers/mmc/host/sdhci.h
> index 58fcbeaf281e..5b699af04bfe 100644
> --- a/drivers/mmc/host/sdhci.h
> +++ b/drivers/mmc/host/sdhci.h
> @@ -880,6 +880,13 @@ int sdhci_suspend_host(struct sdhci_host *host);
> int sdhci_resume_host(struct sdhci_host *host);
> void sdhci_runtime_suspend_host(struct sdhci_host *host);
> void sdhci_runtime_resume_host(struct sdhci_host *host, int soft_reset);
> +#else
> +static inline bool sdhci_enable_irq_wakeups(struct sdhci_host *host) { return false; }
> +static inline void sdhci_disable_irq_wakeups(struct sdhci_host *host) {}
> +static inline int sdhci_suspend_host(struct sdhci_host *host) { return -EOPNOTSUPP; }
> +static inline int sdhci_resume_host(struct sdhci_host *host) { return -EOPNOTSUPP; }
> +static inline void sdhci_runtime_suspend_host(struct sdhci_host *host) {}
> +static inline void sdhci_runtime_resume_host(struct sdhci_host *host, int soft_reset) {}
> #endif
>
> void sdhci_cqe_enable(struct mmc_host *mmc);