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>
Loading
-
mentioned in commit c69afff6
-
mentioned in commit 535b15dd
-
mentioned in commit f068df62
-
mentioned in commit 622e6a03
-
mentioned in commit 7bfb5659
-
mentioned in commit d82cbc59
-
mentioned in commit 335799b7
-
mentioned in commit 0830333c
-
mentioned in commit 9a2e9cc6
-
mentioned in commit 831a80c2
-
mentioned in commit 01b2917a
-
mentioned in commit d99fb64a
-
mentioned in commit 7478c84f
-
mentioned in commit 251ff349
-
mentioned in commit 846dcae7
-
mentioned in commit 66ac14f7
Please register or sign in to comment