From: David Lechner <dlechner@baylibre.com>
To: "Andrey Skvortsov" <andrej.skvortzov@gmail.com>,
"Jean-Baptiste Maneyrol" <jean-baptiste.maneyrol@tdk.com>,
"Jonathan Cameron" <jic23@kernel.org>,
"Nuno Sá" <nuno.sa@analog.com>,
"Andy Shevchenko" <andy@kernel.org>,
linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] iio: imu: fix unbalanced regulator_disable calls, when probe fails
Date: Sun, 8 Mar 2026 13:29:35 -0500 [thread overview]
Message-ID: <a0afb85b-4bc3-4b96-abda-404f7303a688@baylibre.com> (raw)
In-Reply-To: <20260308110328.2859831-1-andrej.skvortzov@gmail.com>
The patch subject should include the specific driver so we know
what we are dealing with right away and to make it easy to search
for later.
iio: imu: inv_mpu6050: ...
On 3/8/26 6:03 AM, Andrey Skvortsov wrote:
> During a probe functions after all regulators are enabled, runtime pm
> is enabled. Before probe function finishes, runtime pm triggers and
> disables vddio regulator. When probe function fails after that,
> inv_mpu_core_disable_regulator_action tries to disable already
> disabled by runtime pm vddio regulator causing following backtrace:
This sounds like a similar issue to one we saw recently [1][2].
[1]: https://lore.kernel.org/all/20260205-inv-icm45600-fix-regulator-put-warning-v1-1-314ec12512cb@tdk.com/
[2]: https://lore.kernel.org/linux-iio/20260217-inv-icm45600-fix-regulator-put-warning-v2-1-08ad62b1dcdb@tdk.com/
...
>
> This change introduces variable to track state of vddio regulator and
> whether it's needed to disable it or not.
If we have to track the regulator enable state, it seems like the frameworks
are broken or we are using them wrong.
In the other similar patch, we moved the pm_runtime stuff around to make it
work. Could we do something like that here?
...
Also, tip for better commit messages: this last paragraph should go
first and use imperative form "Introduce a variable..." (don't say "This
change/patch/etc."). Then follow that with the explanation of why we
need the change.
next prev parent reply other threads:[~2026-03-08 18:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-08 11:03 [PATCH] iio: imu: fix unbalanced regulator_disable calls, when probe fails Andrey Skvortsov
2026-03-08 18:29 ` David Lechner [this message]
2026-03-08 20:39 ` Andy Shevchenko
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=a0afb85b-4bc3-4b96-abda-404f7303a688@baylibre.com \
--to=dlechner@baylibre.com \
--cc=andrej.skvortzov@gmail.com \
--cc=andy@kernel.org \
--cc=jean-baptiste.maneyrol@tdk.com \
--cc=jic23@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nuno.sa@analog.com \
/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