summaryrefslogtreecommitdiff
path: root/net/dsa-uclass.c
diff options
context:
space:
mode:
authorEugen Hristev <eugen.hristev@collabora.com>2023-04-19 16:45:24 +0300
committerJaehoon Chung <jh80.chung@samsung.com>2023-07-04 11:20:56 +0900
commit4fcba5d556b4224ad65a249801e4c9594d1054e8 (patch)
tree125ce902241179e38ac7a0a7a26b758df4c35a19 /net/dsa-uclass.c
parent67d8b46e6efa306403e45f4c76f24b86a5e63b75 (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 <eugen.hristev@collabora.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Diffstat (limited to 'net/dsa-uclass.c')
0 files changed, 0 insertions, 0 deletions