]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
mmc: sdhci-uhs2: Fix calling incorrect sdhci_set_clock() function
authorBen Chuang <ben.chuang@genesyslogic.com.tw>
Thu, 11 Sep 2025 02:41:01 +0000 (10:41 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Fri, 12 Sep 2025 13:00:52 +0000 (15:00 +0200)
Fix calling incorrect sdhci_set_clock() in __sdhci_uhs2_set_ios() when the
vendor defines its own sdhci_set_clock().

Fixes: 10c8298a052b ("mmc: sdhci-uhs2: add set_ios()")
Cc: stable@vger.kernel.org # v6.13+
Signed-off-by: Ben Chuang <ben.chuang@genesyslogic.com.tw>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-uhs2.c

index 18fb6ee5b96a985c45922674600a96ddb9cea3c0..c459a08d01da52b8129452ccc1511f7f1564399d 100644 (file)
@@ -295,7 +295,7 @@ static void __sdhci_uhs2_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
        else
                sdhci_uhs2_set_power(host, ios->power_mode, ios->vdd);
 
-       sdhci_set_clock(host, ios->clock);
+       host->ops->set_clock(host, ios->clock);
        host->clock = ios->clock;
 }