Skip to content

Internal voltage control for platform drivers

Vijay Viswanath linux-arm-msm linux-devicetree linux-mmc lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 6 repliesIn review

Changes since RFC from the cover letter

- Added DT option to pass regulator load values the sdhci-msm driver should vote during BUS_ON and BUS_OFF power irq.
- Removed quirk and used local flags in sdhci_add_host to to avoid scenario of both sdhci & sdhci-msm layer controlling the regulators.
- Introduced two sdhci msm layer APIs to replace the respective sdhci layer APIs. This is again to stop sdhci layer from controlling regulators if sdhci_msm layer is present.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3mmc: sdhci: Allow platform controlled voltage switchingdrivers/mmc/host/sdhci.c+16 -53 replies
2/3Documentation: sdhci-msm: Add entries for passing load valuesDocumentation/devicetree/bindings/mmc/sdhci-msm.txt+6 -01 reply
3/3mmc: sdhci-msm: Use internal voltage controldrivers/mmc/host/sdhci-msm.c+209 -112 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH V1 0/3] Internal voltage control for platform drivers

Certain SDHC controllers may require that voltage switching happen after sepcial conditions. Added a QUIRK for such controllers to use.

For SDHCI-MSM controllers, power irq is a signal from controller to SW that it is ready for voltage switch. So added support to register voltage regulators from the msm driver and use them. Voltage switching from core layer is causing CRC/cmd timeout errors in some chipsets.

Changes since RFC:
- Added DT option to pass regulator load values the sdhci-msm driver should vote during BUS_ON and BUS_OFF power irq.
- Removed quirk and used local flags in sdhci_add_host to to avoid scenario of both sdhci & sdhci-msm layer controlling the regulators.
- Introduced two sdhci msm layer APIs to replace the respective sdhci layer APIs. This is again to stop sdhci layer from controlling regulators if sdhci_msm layer is present.

Tested on: sdm845
Requies patch series:"[PATCH V3 0/4] Changes for SDCC5 version"

Vijay Viswanath (3):
mmc: sdhci: Allow platform controlled voltage switching
Documentation: sdhci-msm: Add entries for passing load values
mmc: sdhci-msm: Use internal voltage control

 .../devicetree/bindings/mmc/sdhci-msm.txt          |   6 +
 drivers/mmc/host/sdhci-msm.c                       | 220 +++++++++++++++++++--
 drivers/mmc/host/sdhci.c                           |  21 +-
 3 files changed, 231 insertions(+), 16 deletions(-)
Signature · 2 lines
 Qualcomm India Private Limited, on behalf of Qualcomm Innovation Center, Inc. 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project.