mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org>
Cc: patches@opensource.cirrus.com, linux-kernel@vger.kernel.org
Subject: [PATCH 0/5] regulator: arizona: clean up Device Tree and platform data handling
Date: Mon, 30 Nov 2026 21:58:34 -0800	[thread overview]
Message-ID: <20261130-arizona-regulator-v1-0-727bc83b897c@gmail.com> (raw)

This series fixes a Device Tree node reference leak, cleans up Device
Tree parsing and external DCVDD detection, and removes internal platform
data usage from the Arizona LDO1 and MICVDD regulator drivers.

An earlier change left the child ldo1 Device Tree node reference leaked
when acquiring the enable GPIO failed in arizona-ldo1. Fix that error
path, then allow Device Tree parsing to run regardless of parent
platform data while short-circuiting early when no Device Tree node is
present. Next, assign default init_data directly in regulator_config
instead of staging it through platform data and drop the unreachable
empty consumer supply check in arizona-ldo1. Finally, consolidate
external DCVDD detection and flatten Device Tree property parsing in
both drivers, and tidy up minor coding style issues in arizona-ldo1.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
---
Dmitry Torokhov (5):
      regulator: arizona-ldo1: fix OF node leak on enable GPIO error
      regulator: arizona: always parse device tree properties
      regulator: arizona: stop using platform data for init_data
      regulator: arizona: simplify Device Tree property parsing
      regulator: arizona-ldo1: clean up coding style

 drivers/regulator/arizona-ldo1.c    | 91 ++++++++++++-------------------------
 drivers/regulator/arizona-micsupp.c | 60 ++++++++----------------
 2 files changed, 47 insertions(+), 104 deletions(-)
---
base-commit: 253f86660c1f882fbf554db5eaa34bc5d66dc7e8
change-id: 20261130-arizona-regulator-c910d92a3591

Thanks.

-- 
Dmitry


             reply	other threads:[~2026-12-01  5:59 UTC|newest]

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

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=20261130-arizona-regulator-v1-0-727bc83b897c@gmail.com \
    --to=dmitry.torokhov@gmail.com \
    --cc=broonie@kernel.org \
    --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 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®