[PATCH 4/7] mmc: sdhci-of-k1: Improve power control

From: Yixun Lan

Date: Wed Sep 02 2026 - 04:18:24 EST


From: Long Wan <long.wan@xxxxxxxxxxxxxxxxxx>

The default sdhci_set_power() skips the SD bus voltage select field
entirely when a vmmc regulator is present, leaving SD Bus Power in off
state of the power control register. To fix this, configure the bus
voltage explicitly.

Fixes: e5502d15b0f3 ("mmc: sdhci-of-k1: add support for SpacemiT K1 SoC")
Signed-off-by: Long Wan <long.wan@xxxxxxxxxxxxxxxxxx>
Signed-off-by: Yixun Lan <dlan@xxxxxxxxxx>
---
drivers/mmc/host/sdhci-of-k1.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/mmc/host/sdhci-of-k1.c b/drivers/mmc/host/sdhci-of-k1.c
index 5dccdd4b217d..be770e8a9884 100644
--- a/drivers/mmc/host/sdhci-of-k1.c
+++ b/drivers/mmc/host/sdhci-of-k1.c
@@ -496,6 +496,7 @@ static const struct sdhci_ops spacemit_sdhci_ops = {
.reset = spacemit_sdhci_reset,
.set_bus_width = sdhci_set_bus_width,
.set_clock = spacemit_sdhci_set_clock,
+ .set_power = sdhci_set_power_and_bus_voltage,
.set_uhs_signaling = spacemit_sdhci_set_uhs_signaling,
.platform_execute_tuning = spacemit_sdhci_execute_tuning,
};

--
2.55.0