userspace-consumer: adding is_shared flag
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | regulator: Add regulator-output is_shared propertyDocumentation/ | +5 | 0 replies | |
| 2/2 | regulator: userspace-consumer add shared supply functionalitydrivers/ | +24 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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