All of lore.kernel.org
 help / color / mirror / Atom feed
From: Charles Keepax <ckeepax@opensource.cirrus.com>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Liam Girdwood <lgirdwood@gmail.com>,
	Mark Brown <broonie@kernel.org>,
	patches@opensource.cirrus.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 3/5] regulator: arizona: stop using platform data for init_data
Date: Wed, 2 Dec 2026 17:10:04 +0000	[thread overview]
Message-ID: <axBQ7K9bMWksMJzw@opensource.cirrus.com> (raw)
In-Reply-To: <20261130-arizona-regulator-v1-3-727bc83b897c@gmail.com>

On Mon, Nov 30, 2026 at 09:58:37PM -0800, Dmitry Torokhov wrote:
> Neither Arizona nor Madera board code populates regulator init_data in
> platform data. Both drivers only used the platform data field as
> temporary storage between Device Tree parsing and regulator
> registration.
> 
> Assign the default init_data directly to the regulator configuration and
> let Device Tree parsing override it when present, dropping the unused
> platform data parameters and headers from both regulator drivers. Also
> remove the now-unreachable zero consumer supply check in
> arizona_ldo1_common_init(), as all default templates and Device Tree
> init_data unconditionally specify one consumer supply.
> 
> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
> ---

Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>

> -	/*
> -	 * LDO1 can only be used to supply DCVDD so if it has no
> -	 * consumers then DCVDD is supplied externally.
> -	 */
> -	if (config.init_data->num_consumer_supplies == 0)
> -		*external_dcvdd = true;

This does make me a little nervous as I think it changes the
behaviour if no DT is supplied, but it's definitely more normal
for the part to use internal DCVDD so probably fine.

Thanks,
Charles

  reply	other threads:[~2026-12-02 17:10 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01  5:58 [PATCH 0/5] regulator: arizona: clean up Device Tree and platform data handling Dmitry Torokhov
2026-12-01  5:58 ` [PATCH 1/5] regulator: arizona-ldo1: fix OF node leak on enable GPIO error Dmitry Torokhov
2026-12-02 15:58   ` Charles Keepax
2026-12-01  5:58 ` [PATCH 2/5] regulator: arizona: always parse device tree properties Dmitry Torokhov
2026-12-02 16:42   ` Charles Keepax
2026-12-01  5:58 ` [PATCH 3/5] regulator: arizona: stop using platform data for init_data Dmitry Torokhov
2026-12-02 17:10   ` Charles Keepax [this message]
2026-12-01  5:58 ` [PATCH 4/5] regulator: arizona: simplify Device Tree property parsing Dmitry Torokhov
2026-12-02 17:17   ` Charles Keepax
2026-12-01  5:58 ` [PATCH 5/5] regulator: arizona-ldo1: clean up coding style Dmitry Torokhov
2026-12-02 17:18   ` Charles Keepax

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=axBQ7K9bMWksMJzw@opensource.cirrus.com \
    --to=ckeepax@opensource.cirrus.com \
    --cc=broonie@kernel.org \
    --cc=dmitry.torokhov@gmail.com \
    --cc=lgirdwood@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=patches@opensource.cirrus.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 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.