Re: [PATCH RESEND v2 4/8] mmc: sdhci-of-k1: Improve power control

From: Adrian Hunter

Date: Thu Dec 03 2026 - 09:39:16 EST


On 03/12/2026 16:03, Adrian Hunter wrote:
> On 01/12/2026 12:54, Yixun Lan wrote:
>> 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>
>
> Acked-by: Adrian Hunter <adrian.hunter@xxxxxxxxx>

Although it would be worth explaining in the commit message
how the issue manifests i.e. what happens without this fix?

>
>> ---
>> 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 f86f3636f5a9..5fb4692b58cd 100644
>> --- a/drivers/mmc/host/sdhci-of-k1.c
>> +++ b/drivers/mmc/host/sdhci-of-k1.c
>> @@ -497,6 +497,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,
>> };
>>
>