From: Viresh Kumar <viresh.kumar@linaro.org>
To: Primoz Fiser <primoz.fiser@norik.com>
Cc: Viresh Kumar <vireshk@kernel.org>, Nishanth Menon <nm@ti.com>,
Stephen Boyd <sboyd@kernel.org>,
linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org,
upstream@lists.phytec.de
Subject: Re: [PATCH 2/2] OPP: ti: Use devm_pm_opp_set_config_regulators
Date: Tue, 11 Jun 2024 10:58:20 +0530 [thread overview]
Message-ID: <20240611052820.tp3xoto5fbd7figr@vireshk-i7> (raw)
In-Reply-To: <00ec4120-19ca-4b20-85d0-754c05bdc669@norik.com>
On 10-06-24, 13:39, Primoz Fiser wrote:
> I didn't because of:
>
> config ARM_TI_CPUFREQ
>
> bool "Texas Instruments CPUFreq support"
>
>
> is a built-in driver.
This driver has confused me so many times.. The driver looks like a module,
since it declares all module properties but is builtin only :(
> Anyway, I guess one could trigger this also with:
>
> $ cd /sys/devices/platform/ocp/4a003b20.opp-supply/driver
> $ echo 4a003b20.opp-supply > unbind
> $ echo 4a003b20.opp-supply > bind
> -sh: echo: write error: Device or resource busy
>
> so the error comes from drivers/opp/core.c block:
>
> /* This should be called before OPPs are initialized */
> if (WARN_ON(!list_empty(&opp_table->opp_list))) {
> ret = -EBUSY;
> goto err;
> }
This is a different issue, which is unrelated to what we are discussing here. It
happens as the driver has registered the cpufreq device from init() callback
instead of probe() and remove() doesn't undo that.
> > The only way to get this solved is probably by introducing a remove()
> > method, which clears the OPP config and stores the token returned by
> > dev_pm_opp_set_config_regulators().
I will apply the V1 patch itself now. That is probably the best we can do for
now.
--
viresh
prev parent reply other threads:[~2024-06-11 5:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-06 11:33 [PATCH 1/2] OPP: Introduce devm_pm_opp_set_config_regulators Primoz Fiser
2024-06-06 11:33 ` [PATCH 2/2] OPP: ti: Use devm_pm_opp_set_config_regulators Primoz Fiser
2024-06-10 4:22 ` Viresh Kumar
2024-06-10 11:39 ` Primoz Fiser
2024-06-11 5:28 ` Viresh Kumar [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=20240611052820.tp3xoto5fbd7figr@vireshk-i7 \
--to=viresh.kumar@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=nm@ti.com \
--cc=primoz.fiser@norik.com \
--cc=sboyd@kernel.org \
--cc=upstream@lists.phytec.de \
--cc=vireshk@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