diff options
| author | Eugen Hristev <[email protected]> | 2023-04-19 16:45:24 +0300 |
|---|---|---|
| committer | Jaehoon Chung <[email protected]> | 2023-07-04 11:20:56 +0900 |
| commit | 4fcba5d556b4224ad65a249801e4c9594d1054e8 (patch) | |
| tree | 125ce902241179e38ac7a0a7a26b758df4c35a19 /scripts/cleanpatch | |
| parent | 67d8b46e6efa306403e45f4c76f24b86a5e63b75 (diff) | |
regulator: implement basic reference counter
Some devices share a regulator supply, when the first one will request
regulator disable, the second device will have it's supply cut off before
graciously shutting down. Hence there will be timeouts and other failed
operations.
Implement a reference counter mechanism similar with what is done in
Linux, to keep track of enable and disable requests, and only disable the
regulator when the last of the consumers has requested shutdown.
Signed-off-by: Eugen Hristev <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Reviewed-by: Patrice Chotard <[email protected]>
Diffstat (limited to 'scripts/cleanpatch')
0 files changed, 0 insertions, 0 deletions
