[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250528174426.3318110-1-dtokazaki@google.com>
Date: Wed, 28 May 2025 17:44:23 +0000
From: Daniel Okazaki <dtokazaki@...gle.com>
To: Liam Girdwood <lgirdwood@...il.com>, Mark Brown <broonie@...nel.org>,
Rob Herring <robh@...nel.org>, Krzysztof Kozlowski <krzk+dt@...nel.org>, Conor Dooley <conor+dt@...nel.org>,
Zev Weiss <zev@...ilderbeest.net>
Cc: Daniel Okazaki <dtokazaki@...gle.com>, kernel-team@...roid.com,
linux-kernel@...r.kernel.org, devicetree@...r.kernel.org
Subject: [PATCH v1 0/2] userspace-consumer: adding is_shared flag
Hi,
Currently this userspace regulator driver requires exclusive control
of the regulator to operate. This patch adds an optional flag to
remove that constraint, and allow the regulator to be shared by other
modules. This allows for userspace to share control over a regulator
with kernel space.
There is a boot time behavior change when this flag is set.
Before, if the gpio was enabled before this driver probes, it would
stay enabled. This change allows regulator_init_complete_work
to disable the regulator on completion.
The regulator state reported by this driver is changed from the
absolute state to the local state of the driver. This abstracts
away the regulator state of other consumers from this driver.
Daniel Okazaki (2):
regulator: Add regulator-output is_shared property
regulator: userspace-consumer add shared supply functionality
.../bindings/regulator/regulator-output.yaml | 5 +++
drivers/regulator/userspace-consumer.c | 39 ++++++++++++-------
2 files changed, 29 insertions(+), 15 deletions(-)
--
2.49.0.1204.g71687c7c1d-goog
Powered by blists - more mailing lists