From: Jonathan Cameron <jic23@kernel.org>
To: Fabrice Gasnier <fabrice.gasnier@foss.st.com>
Cc: "Brian Norris" <briannorris@chromium.org>,
"Rafael J. Wysocki" <rafael@kernel.org>,
linux-pm@vger.kernel.org, linux-iio@vger.kernel.org,
"Andy Shevchenko" <andy@kernel.org>,
"Alexandre Torgue" <alexandre.torgue@foss.st.com>,
"Nuno Sá" <nuno.sa@analog.com>,
linux-stm32@st-md-mailman.stormreply.com,
"David Lechner" <dlechner@baylibre.com>,
"Maxime Coquelin" <mcoquelin.stm32@gmail.com>,
linux-kernel@vger.kernel.org,
"Fabrice Gasnier" <fabrice.gasnier@st.com>,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 5/5] iio: adc: stm32-adc: Drop runtime_idle()
Date: Sun, 18 Oct 2026 21:20:53 +0100 [thread overview]
Message-ID: <20261018212053.66b7ba14@jic23-hlaptop> (raw)
In-Reply-To: <39d56818-922f-488e-842d-19a194654921@foss.st.com>
On Tue, 6 Oct 2026 14:42:51 +0200
Fabrice Gasnier <fabrice.gasnier@foss.st.com> wrote:
> On 10/3/26 01:03, Brian Norris wrote:
> > This runtime_idle() implementation was added in commit c537d3457542 ("iio:
> > adc: stm32-adc: fix runtime autosuspend delay when slow polling"), to work
> > around a suboptimal behavior in the runtime PM core. It should no longer
> > be necessary as of "PM: runtime: Propagate last_busy from dependent to
> > dependency".
> >
> > Cc: Jonathan Cameron <jic23@kernel.org>
> > Cc: Fabrice Gasnier <fabrice.gasnier@st.com>
> > Cc: Ulf Hansson <ulfh@kernel.org>
> > Signed-off-by: Brian Norris <briannorris@chromium.org>
> > ---
> > I do not have these devices to test. I have tested other drivers, and I've
> > verified this behavior in unit tests as well.
>
> Hi Brian,
>
> I've been able to reproduce on stm32 earlier behavior by applying this patch only.
> With the full series, so far, everything seems fine from my point of view.
>
> I haven't deeply inspected all the series, at least for the stm32-adc driver, you can add my:
>
> Tested-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com>
>
I'm fine with this going through whatever tree you like
Acked-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
It seems unlikely to cause merge conflicts with other changes
to that driver, but might be worth an immutable branch, just in case.
> Thanks,
> Best Regards,
> Fabrice
>
> >
> > drivers/iio/adc/stm32-adc-core.c | 9 +--------
> > 1 file changed, 1 insertion(+), 8 deletions(-)
> >
> > diff --git a/drivers/iio/adc/stm32-adc-core.c b/drivers/iio/adc/stm32-adc-core.c
> > index a42d82d61cb8..e9e113a46ccf 100644
> > --- a/drivers/iio/adc/stm32-adc-core.c
> > +++ b/drivers/iio/adc/stm32-adc-core.c
> > @@ -836,17 +836,10 @@ static int stm32_adc_core_runtime_resume(struct device *dev)
> > return stm32_adc_core_hw_start(dev);
> > }
> >
> > -static int stm32_adc_core_runtime_idle(struct device *dev)
> > -{
> > - pm_runtime_mark_last_busy(dev);
> > -
> > - return 0;
> > -}
> > -
> > static DEFINE_RUNTIME_DEV_PM_OPS(stm32_adc_core_pm_ops,
> > stm32_adc_core_runtime_suspend,
> > stm32_adc_core_runtime_resume,
> > - stm32_adc_core_runtime_idle);
> > + NULL);
> >
> > static const struct stm32_adc_priv_cfg stm32f4_adc_priv_cfg = {
> > .regs = &stm32f4_adc_common_regs,
>
prev parent reply other threads:[~2026-10-18 20:21 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-02 23:03 [PATCH 0/5] PM: runtime: Improve autosuspend child to parent propagation Brian Norris
2026-10-02 23:03 ` [PATCH 1/5] PM: runtime: Only queue an idle check for RPM-linked suppliers (part 2) Brian Norris
2026-10-02 23:03 ` [PATCH 2/5] PM: runtime: Convert last_busy to atomic64_t Brian Norris
2026-10-02 23:03 ` [PATCH 3/5] PM: runtime: Propagate last_busy from dependent to dependency Brian Norris
2026-10-03 15:21 ` Andy Shevchenko
2026-10-05 18:05 ` Brian Norris
2026-10-12 19:58 ` Andy Shevchenko
2026-10-12 23:17 ` Brian Norris
2026-10-13 6:11 ` Andy Shevchenko
2026-10-02 23:03 ` [PATCH 4/5] PM: runtime: Add tests for last_busy propagation Brian Norris
2026-10-02 23:03 ` [PATCH 5/5] iio: adc: stm32-adc: Drop runtime_idle() Brian Norris
2026-10-06 12:42 ` Fabrice Gasnier
2026-10-18 20:20 ` Jonathan Cameron [this message]
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=20261018212053.66b7ba14@jic23-hlaptop \
--to=jic23@kernel.org \
--cc=alexandre.torgue@foss.st.com \
--cc=andy@kernel.org \
--cc=briannorris@chromium.org \
--cc=dlechner@baylibre.com \
--cc=fabrice.gasnier@foss.st.com \
--cc=fabrice.gasnier@st.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=mcoquelin.stm32@gmail.com \
--cc=nuno.sa@analog.com \
--cc=rafael@kernel.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
all inboxes | Powered by JetHome®