]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mmc: sdhci: Move the code related to setting the clock from sdhci_set_ios_common...
authorBen Chuang <ben.chuang@genesyslogic.com.tw>
Thu, 11 Sep 2025 02:40:20 +0000 (10:40 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Sep 2025 09:16:49 +0000 (11:16 +0200)
commit7186d8e8bd968c544e23dbb86929e367989ed6b6
tree5222b9af5f84ed3567d47847446d11986af41dd4
parentd0b7ff384b7a8820b0b755e4554bea42a773e8b4
mmc: sdhci: Move the code related to setting the clock from sdhci_set_ios_common() into sdhci_set_ios()

commit 7b7e71683b4ccbe0dbd7d434707623327e852f20 upstream.

The sdhci_set_clock() is called in sdhci_set_ios_common() and
__sdhci_uhs2_set_ios(). According to Section 3.13.2 "Card Interface
Detection Sequence" of the SD Host Controller Standard Specification
Version 7.00, the SD clock is supplied after power is supplied, so we only
need one in __sdhci_uhs2_set_ios(). Let's move the code related to setting
the clock from sdhci_set_ios_common() into sdhci_set_ios() and modify
the parameters passed to sdhci_set_clock() in __sdhci_uhs2_set_ios().

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
drivers/mmc/host/sdhci.c