]> git.itanic.dy.fi Git - linux-stable/commit
mmc: sdhci: Avoid unnecessary ->set_clock()
authorAdrian Hunter <adrian.hunter@intel.com>
Mon, 28 Nov 2022 13:32:58 +0000 (15:32 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 7 Dec 2022 12:29:14 +0000 (13:29 +0100)
commitbeaba9e46cffca7fcf00bec7cf52fe52a9dcf918
tree2f171a11ae5c019b0c6fd93ab4b58482a736d801
parente026a3f9172f5c9aacff270b929a166c3ea1b6f7
mmc: sdhci: Avoid unnecessary ->set_clock()

To avoid glitches on the clock line, the card clock is disabled when making
timing changes. Do not do that separately for HISPD and UHS settings.

Tested-by: Haibo Chen <haibo.chen@nxp.com>
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/20221128133259.38305-4-adrian.hunter@intel.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci.c