mmc: sdhci-msm: Correctly set the load for the regulator
authorYuanjie Yang <quic_yuanjiey@quicinc.com>
Tue, 14 Jan 2025 08:35:14 +0000 (16:35 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Fri, 17 Jan 2025 11:31:03 +0000 (12:31 +0100)
commit20a0c37e44063997391430c4ae09973e9cbc3911
treee599308146f37542e148d08ecde43d2e70b64a08
parent1931cd769a087cfea2f2e1f74769001a7a3be9f1
mmc: sdhci-msm: Correctly set the load for the regulator

Qualcomm regulator supports two power supply modes: HPM and LPM.
Currently, the sdhci-msm.c driver does not set the load to adjust
the current for eMMC and SD. If the regulator dont't set correct
load in LPM state, it will lead to the inability to properly
initialize eMMC and SD.

Set the correct regulator current for eMMC and SD to ensure that the
device can work normally even when the regulator is in LPM.

Signed-off-by: Yuanjie Yang <quic_yuanjiey@quicinc.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20250114083514.258379-1-quic_yuanjiey@quicinc.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-msm.c