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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Jan 2023 10:58:50 +0000 (11:58 +0100)
commit1f9cf4daf2d357f51a69a9380b4cccc76f484ece
tree5ab5bdf7a5dbec166d6cf0b848d0551371878d01
parent58d53ff30a00903c62eb0cc65559ddd0bd916cc3
mmc: sdhci-sprd: Disable CLK_AUTO when the clock is less than 400K

commit ff874dbc4f868af128b412a9bd92637103cf11d7 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/host/sdhci-sprd.c