From: Wolfram Sang <wsa+renesas@sang-engineering.com>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Claudiu <claudiu.beznea@tuxon.dev>,
ulf.hansson@linaro.org, p.zabel@pengutronix.de,
linux-mmc@vger.kernel.org, linux-renesas-soc@vger.kernel.org,
linux-kernel@vger.kernel.org,
Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Subject: Re: [PATCH 2/3] mmc: renesas_sdhi: Switch to SYSTEM_SLEEP_PM_OPS()/RUNTIME_PM_OPS() and pm_ptr()
Date: Wed, 12 Nov 2025 19:28:02 +0100 [thread overview]
Message-ID: <aRTRshYq2MznnCYc@shikoro> (raw)
In-Reply-To: <CAMuHMdXUqsU6MKh8WSO4EmrxCfUg8FZkrJKb7OH-KwMY4+iC4Q@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1482 bytes --]
Hi Geert,
> > -#ifdef CONFIG_PM
> > int tmio_mmc_host_runtime_suspend(struct device *dev);
> > int tmio_mmc_host_runtime_resume(struct device *dev);
> > -#endif
>
> This change is indeed needed, because RUNTIME_PM_OPS() now
> references these two functions unconditionally...
>
> >
> > static inline u16 sd_ctrl_read16(struct tmio_mmc_host *host, int addr)
> > {
> > diff --git a/drivers/mmc/host/tmio_mmc_core.c b/drivers/mmc/host/tmio_mmc_core.c
> > index 775e0d9353d5..8be642f737c7 100644
> > --- a/drivers/mmc/host/tmio_mmc_core.c
> > +++ b/drivers/mmc/host/tmio_mmc_core.c
> > @@ -1286,7 +1286,6 @@ void tmio_mmc_host_remove(struct tmio_mmc_host *host)
> > }
> > EXPORT_SYMBOL_GPL(tmio_mmc_host_remove);
> >
> > -#ifdef CONFIG_PM
> > static int tmio_mmc_clk_enable(struct tmio_mmc_host *host)
> > {
> > if (!host->clk_enable)
> > @@ -1331,7 +1330,6 @@ int tmio_mmc_host_runtime_resume(struct device *dev)
> > return 0;
> > }
> > EXPORT_SYMBOL_GPL(tmio_mmc_host_runtime_resume);
> > -#endif
>
> ... however, no actual code referencing them is emitted in the
> CONFIG_PM=n case, as renesas_sdhi_internal_dmac_dev_pm_ops is not used
> due to the use of pm_ptr(). Hence the changes to this file are needed.
> (verified with m68k allmodconfig/allyesconfig builds)
Since you confirmed all this, did you forget a Rev-by? Or do you
actually describe an issue which I am overlooking?
Happy hacking,
Wolfram
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2025-11-12 18:28 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-08 4:25 [PATCH 0/3] mmc: renesas_sdhi: Handle resets Claudiu
2025-10-08 4:25 ` [PATCH 1/3] mmc: renesas_sdhi: Deassert the reset signal on probe Claudiu
2025-10-10 7:51 ` Geert Uytterhoeven
2025-10-10 9:35 ` Claudiu Beznea
2025-11-13 21:06 ` Wolfram Sang
2025-10-08 4:25 ` [PATCH 2/3] mmc: renesas_sdhi: Switch to SYSTEM_SLEEP_PM_OPS()/RUNTIME_PM_OPS() and pm_ptr() Claudiu
2025-10-13 16:20 ` Geert Uytterhoeven
2025-11-12 18:28 ` Wolfram Sang [this message]
2025-11-13 8:32 ` Geert Uytterhoeven
2025-11-11 16:22 ` Ulf Hansson
2025-11-13 8:01 ` Claudiu Beznea
2025-11-13 21:08 ` Wolfram Sang
2025-10-08 4:25 ` [PATCH 3/3] mmc: renesas_sdhi: Add suspend/resume hooks Claudiu
2025-11-11 16:24 ` Ulf Hansson
2025-11-13 21:09 ` Wolfram Sang
2025-11-10 15:36 ` [PATCH 0/3] mmc: renesas_sdhi: Handle resets Claudiu Beznea
2025-11-12 18:25 ` Wolfram Sang
2025-11-13 8:12 ` Claudiu Beznea
2025-11-13 21:13 ` Wolfram Sang
2025-11-17 9:11 ` Claudiu Beznea
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aRTRshYq2MznnCYc@shikoro \
--to=wsa+renesas@sang-engineering.com \
--cc=claudiu.beznea.uj@bp.renesas.com \
--cc=claudiu.beznea@tuxon.dev \
--cc=geert@linux-m68k.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=p.zabel@pengutronix.de \
--cc=ulf.hansson@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox