mmc: sdhci-sprd: Disable CLK_AUTO when the clock is less than 400K
authorWenchao Chen <wenchao.chen@unisoc.com>
Wed, 7 Dec 2022 05:19:09 +0000 (13:19 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Fri, 9 Dec 2022 09:32:58 +0000 (10:32 +0100)
commitff874dbc4f868af128b412a9bd92637103cf11d7
treed18d19830a80962d387507c7021e00112910b4c8
parent19dafe9c6b86cc15979e514787fc743041ebc08d
mmc: sdhci-sprd: Disable CLK_AUTO when the clock is less than 400K

When the clock is less than 400K, some SD cards fail to initialize
because CLK_AUTO is enabled.

Fixes: fb8bd90f83c4 ("mmc: sdhci-sprd: Add Spreadtrum's initial host controller")
Signed-off-by: Wenchao Chen <wenchao.chen@unisoc.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20221207051909.32126-1-wenchao.chen@unisoc.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-sprd.c