]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Sep 2025 09:16:49 +0000 (11:16 +0200)
commit 09c2b628f6403ad467fc73326a50020590603871 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.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;
 }