From: Mark Brown <broonie@kernel.org>
To: Linus Walleij <linusw@kernel.org>
Cc: Stephan Gerhold <stephan@gerhold.net>,
Liam Girdwood <lgirdwood@gmail.com>,
Axel Lin <axel.lin@ingics.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 09/10] regulator: ab8500: Preserve OTP-enabled buck regulators
Date: Mon, 14 Sep 2026 14:14:57 +0100 [thread overview]
Message-ID: <aqfzURhgpX55Obfs@sirena.co.uk> (raw)
In-Reply-To: <20260914-ux500-dts-snowball-regulator-v3-9-7f92a365628e@kernel.org>
[-- Attachment #1: Type: text/plain, Size: 1120 bytes --]
On Mon, Sep 14, 2026 at 09:46:08AM +0200, Linus Walleij wrote:
> The SMPS enable fields are initialized from OTP and may leave a rail
> enabled for discrete consumers which cannot be described in the device
> tree. Such a rail currently looks unused to the regulator core and is
> disabled when constraints are completed.
> +static int ab8500_buck_init(struct regulator_dev *rdev,
> + struct regulator_config *config)
> +{
> + /*
> + * The SMPS enable state is selected by OTP. An enabled rail may
> + * supply discrete board components which are not represented as
> + * regulator consumers, so keep it out of the unused-regulator sweep.
> + */
> + rdev->constraints->boot_on = true;
> + rdev->constraints->always_on = true;
> + rdev->constraints->valid_ops_mask &= ~REGULATOR_CHANGE_STATUS;
This unconditionally overrides machine constraints, the general idea is
that we should always trust machine constraints. For this particular
driver it probably doesn't matter so much but it's a bad example and we
really should update the DT too, and if we're going to enforce in kernel
then warn about doing so.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2026-09-14 13:15 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-14 7:45 [PATCH v3 00/10] Add AB8500 and AB8505 buck regulator support Linus Walleij
2026-09-14 7:46 ` [PATCH v3 01/10] regulator: ab8500: Fix AB8505 VANA voltage selectors Linus Walleij
2026-09-14 7:46 ` [PATCH v3 02/10] regulator: ab8500: Add AB8505 VAUX3 3.05 V setting Linus Walleij
2026-09-14 7:46 ` [PATCH v3 03/10] regulator: ab8500: Handle AB8505 VINTCORE selector 7 Linus Walleij
2026-09-14 7:46 ` [PATCH v3 04/10] regulator: ab8500: Treat cut 1.0 VAUX3 as fixed Linus Walleij
2026-09-14 7:46 ` [PATCH v3 05/10] regulator: ab8500: Test dedicated enable bits only Linus Walleij
2026-09-14 7:46 ` [PATCH v3 06/10] regulator: ab8500: Propagate mode enable read errors Linus Walleij
2026-09-14 7:46 ` [PATCH v3 07/10] regulator: ab8500: Use linear ranges for LDO voltages Linus Walleij
2026-09-14 7:46 ` [PATCH v3 08/10] regulator: ab8500: Add buck converter support Linus Walleij
2026-09-14 7:46 ` [PATCH v3 09/10] regulator: ab8500: Preserve OTP-enabled buck regulators Linus Walleij
2026-09-14 13:14 ` Mark Brown [this message]
2026-09-14 20:50 ` Linus Walleij
2026-09-14 7:46 ` [PATCH v3 10/10] regulator: ab8500: Use scoped guard for shared mode mutex Linus Walleij
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=aqfzURhgpX55Obfs@sirena.co.uk \
--to=broonie@kernel.org \
--cc=axel.lin@ingics.com \
--cc=lgirdwood@gmail.com \
--cc=linusw@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=stephan@gerhold.net \
/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®