Skip to content

userspace-consumer: adding is_shared flag

Daniel Okazaki linux-devicetree lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2regulator: Add regulator-output is_shared propertyDocumentation/devicetree/bindings/regulator/regulator-output.yaml+5 -00 replies
2/2regulator: userspace-consumer add shared supply functionalitydrivers/regulator/userspace-consumer.c+24 -150 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [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(-)
Signature · 1 line
2.49.0.1204.g71687c7c1d-goog