Internal voltage control for qcom SDHC
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest3 patches 1 replyIn review
- v42 patches 4 repliesSuperseded
- v33 patches 3 repliesSuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 | 3 patches | 6 replies | Superseded | |
| v1 | 3 patches | 6 replies | Superseded |
Changes in v5 from the cover letter
- Added clear comments on condtion which allows either to tunf off/on Vqmmc or to set load.
- Added mmc_card_removable() to the condtion whcih checks if the card is eMMC or other card.
- Rerturning error for unsupported voltagtes in sdhci_msm_start_signal_voltage_switch()
- Moved setting ios.power_mode to mmc_alloc_host().
Patches in v5 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | mmc: sdhci: Allow platform controlled voltage switchingdrivers/ drivers/ | +20 | 0 replies | |
| 2/3 | mmc: core: Set default power mode in mmc_alloc_hostdrivers/ | +1 | 0 replies | |
| 3/3 | mmc: sdhci-msm: Use internal voltage controldrivers/ | +197 | 0 replies |
Reviews trailers per patch
1 of 3 patches has a Reviewed-by or Acked-by.
| Patch | Adrian Hunter |
|---|---|
| 1/3 | A-b |
| 2/3 | |
| 3/3 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH V5 0/3] Internal voltage control for qcom SDHC
On qcom SD host controllers voltage switching be done after the HW is ready for it. The HW informs its readiness through power irq. The voltage switching should happen only then.
So added support to register voltage regulators from the msm driver and use them.
This patchset was posted long back but not actively pursued
https://lore.kernel.org/linux-arm-msm/[email protected]/
So posting it as fresh patchset.
Changes since V4:
- Added clear comments on condtion which allows either to tunf off/on Vqmmc or to set load.
- Added mmc_card_removable() to the condtion whcih checks if the card is eMMC or other card.
- Rerturning error for unsupported voltagtes in sdhci_msm_start_signal_voltage_switch()
- Moved setting ios.power_mode to mmc_alloc_host().
Changes since V3:
- Dropped reading of regulator load values from device tree.
- Dropped documentaiton chagne.
- Since only Vqmmc supply of eMMC would be kept On during suspend, setting load only for this regulator so that it can go to LPM. And since this Load reamins same, load value is hard-coded in the driver.
Changes since V2:
- Removed redundant log from sdhci_msm_set_vmmc.
- Added the condition for skiping disabling of vqmmc for eMMC.
- Updated logic such that, setting load for vqmmc only if it is kept ON.
- Retained ack by Adrian for second patch.
- Updated dt properties names as per Robs comments.
Changes since V1:
- Removed setting load for Vmmc regulator while turning it on/off. Instead setting the active load once during probe.
- Simplified handlng of supplies for BUS_ON/OFF cases in shci_msm_handle_pwr_irq().
- Moved common code out of switch case in sdhci_msm_start_signal_voltage_switch().
- Updated variable name to sdhci_core_to_disable_vqmmc.
- Updated pr_err logs to dev_err logs.
Veerabhadrarao Badiganti (2):
mmc: core: Set default power mode in mmc_alloc_host
mmc: sdhci-msm: Use internal voltage control
Vijay Viswanath (1):
mmc: sdhci: Allow platform controlled voltage switching
drivers/mmc/core/host.c | 1 + drivers/mmc/host/sdhci-msm.c | 206 +++++++++++++++++++++++++++++++++++++++++-- drivers/mmc/host/sdhci.c | 32 ++++--- drivers/mmc/host/sdhci.h | 1 + 4 files changed, 218 insertions(+), 22 deletions(-)
Signature · 1 line
Qualcomm India Private Limited, on behalf of Qualcomm Innovation Center, Inc., is a member of Code Aurora Forum, a Linux Foundation Collaborative Project