From: sashiko-bot@kernel.org
To: "Arina Kharlamova" <arina.kharlamova@mbzuai.ac.ae>
Cc: linux-hwmon@vger.kernel.org
Subject: Re: [PATCH] hwmon: (da9052) Tie the tsiref regulator to the hwmon device
Date: Tue, 01 Dec 2026 19:32:24 +0000 [thread overview]
Message-ID: <sashiko-outbox-244080@kernel.org> (raw)
In-Reply-To: <20261201-s2p-lpr-hwmon-v1-1-c9dacf93eae1@mbzuai.ac.ae>
> 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
> Signed-off-by: Arina Kharlamova <arina.kharlamova@mbzuai.ac.ae>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261201-s2p-lpr-hwmon-v1-1-c9dacf93eae1@mbzuai.ac.ae?part=1
next prev parent reply other threads:[~2026-12-01 19:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 19:26 [PATCH] hwmon: (da9052) Tie the tsiref regulator to the hwmon device Arina Kharlamova
2026-12-01 19:26 ` Arina Kharlamova via B4 Relay
2026-12-01 19:32 ` sashiko-bot [this message]
2026-12-01 19:51 ` David Lechner
2026-12-01 22:51 ` Guenter Roeck
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=sashiko-outbox-244080@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=arina.kharlamova@mbzuai.ac.ae \
--cc=linux-hwmon@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.