From: Guenter Roeck <linux@roeck-us.net>
To: Arina Kharlamova <arina.kharlamova@mbzuai.ac.ae>
Cc: Support Opensource <support.opensource@diasemi.com>,
Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>,
David Lechner <dlechner@baylibre.com>,
Jonathan Cameron <jic23@kernel.org>,
linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org,
stable@vger.kernel.org
Subject: Re: [PATCH v2] hwmon: (da9052) Tie the tsiref regulator to the hwmon device
Date: Thu, 3 Dec 2026 09:25:28 -0800 [thread overview]
Message-ID: <12e3493c-a359-46ad-bb02-9b87b932c05c@roeck-us.net> (raw)
In-Reply-To: <20261203-s2p-lpr-hwmon-v2-1-8d808e44d20e@mbzuai.ac.ae>
On Thu, Dec 03, 2026 at 03:13:30PM +0400, Arina Kharlamova wrote:
> From: Arina Kharlamova <arina.kharlamova@mbzuai.ac.ae>
>
> da9052_hwmon_probe() calls devm_regulator_get_enable_read_voltage() on
> the parent MFD device, because the tsiref supply is described in the
> PMIC node. The reference and the enable then belong to the parent and
> are not dropped when the probe fails later or when the hwmon driver is
> unbound. Every new bind enables the regulator once more.
>
> Look the regulator up on the parent, but enable it with the plain
> calls and disable and put it from a devm action of the hwmon device.
>
> Fixes: d72fd5228c9f ("hwmon: (da9052) Use devm_regulator_get_enable_read_voltage()")
> Cc: stable@vger.kernel.org
> Reviewed-by: David Lechner <dlechner@baylibre.com>
> Signed-off-by: Arina Kharlamova <arina.kharlamova@mbzuai.ac.ae>
Applied.
Thanks,
Guenter
prev parent reply other threads:[~2026-12-03 17:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 11:13 Arina Kharlamova via B4 Relay
2026-12-03 17:25 ` Guenter Roeck [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=12e3493c-a359-46ad-bb02-9b87b932c05c@roeck-us.net \
--to=linux@roeck-us.net \
--cc=arina.kharlamova@mbzuai.ac.ae \
--cc=broonie@kernel.org \
--cc=dlechner@baylibre.com \
--cc=jic23@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=stable@vger.kernel.org \
--cc=support.opensource@diasemi.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
all inboxes | Powered by JetHome®