[RFC,0/2] regulator: qcom_smd: Disable unused regulators

Message ID 20231004-reg-smd-unused-v1-0-5d682493d555@kernkonzept.com
Headers
Series regulator: qcom_smd: Disable unused regulators |

Message

Stephan Gerhold Oct. 4, 2023, 2:17 p.m. UTC
  At the moment unused regulators managed by the RPM firmware on Qualcomm
platforms stay on forever if they are already on during boot. This is
because we have no way of checking if they are really on or not.

Fix this by sending an explicit disable request for all unused
regulators managed by the qcom_smd-regulator driver.

I'm sending this as RFC mainly for the change in the regulator core.
There is also a slight chance of breakage for incomplete device trees
that mistakenly rely on having unused regulators always-on.

Signed-off-by: Stephan Gerhold <stephan.gerhold@kernkonzept.com>
---
Stephan Gerhold (2):
      regulator: core: Disable unused regulators with unknown status
      regulator: qcom_smd: Disable unused regulators

 drivers/regulator/core.c               | 9 +++++++--
 drivers/regulator/qcom_smd-regulator.c | 5 +++--
 2 files changed, 10 insertions(+), 4 deletions(-)
---
base-commit: f9a1d31874c383f58bb4f89bfe79b764682cd026
change-id: 20231004-reg-smd-unused-95bcf0d586fb

Best regards,