Linux ARM-MSM sub-architecture
 help / color / mirror / Atom feed
* [PATCH RFC 0/2] regulator: qcom_smd: Disable unused regulators
@ 2023-10-04 14:17 Stephan Gerhold
  2023-10-04 14:17 ` [PATCH RFC 1/2] regulator: core: Disable unused regulators with unknown status Stephan Gerhold
  2023-10-04 14:17 ` [PATCH RFC 2/2] regulator: qcom_smd: Disable unused regulators Stephan Gerhold
  0 siblings, 2 replies; 15+ messages in thread
From: Stephan Gerhold @ 2023-10-04 14:17 UTC (permalink / raw)
  To: Mark Brown
  Cc: Liam Girdwood, Andy Gross, Bjorn Andersson, Konrad Dybcio,
	linux-kernel, linux-arm-msm, Stephan Gerhold, Stephan Gerhold

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,
-- 
Stephan Gerhold <stephan.gerhold@kernkonzept.com>
Kernkonzept GmbH at Dresden, Germany, HRB 31129, CEO Dr.-Ing. Michael Hohmuth


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2023-10-25 20:07 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-04 14:17 [PATCH RFC 0/2] regulator: qcom_smd: Disable unused regulators Stephan Gerhold
2023-10-04 14:17 ` [PATCH RFC 1/2] regulator: core: Disable unused regulators with unknown status Stephan Gerhold
2023-10-06 21:11   ` Konrad Dybcio
2023-10-09 20:21     ` Stephan Gerhold
2023-10-10 12:14       ` Konrad Dybcio
2023-10-23 12:09   ` Mark Brown
2023-10-23 23:11     ` Bjorn Andersson
2023-10-24  8:57     ` Stephan Gerhold
2023-10-25 17:49       ` Mark Brown
2023-10-25 19:51         ` Stephan Gerhold
2023-10-25 20:07           ` Mark Brown
2023-10-04 14:17 ` [PATCH RFC 2/2] regulator: qcom_smd: Disable unused regulators Stephan Gerhold
2023-10-06 21:15   ` Konrad Dybcio
2023-10-09 20:23     ` Stephan Gerhold
2023-10-09 21:00       ` Konrad Dybcio

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox