mmc: sdhci-sprd: Fix eMMC init failure after hw reset
authorWenchao Chen <wenchao.chen@unisoc.com>
Mon, 4 Dec 2023 06:49:34 +0000 (14:49 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 3 Jan 2024 10:24:03 +0000 (11:24 +0100)
commit8abf77c88929b6d20fa4f9928b18d6448d64e293
treeaff616e0e5da95184a430ff0ee47048e827f2f9e
parent1036f69e251380573e256568cf814506e3fb9988
mmc: sdhci-sprd: Fix eMMC init failure after hw reset

Some eMMC devices that do not close the auto clk gate after hw reset will
cause eMMC initialization to fail. Let's fix this.

Signed-off-by: Wenchao Chen <wenchao.chen@unisoc.com>
Fixes: ff874dbc4f86 ("mmc: sdhci-sprd: Disable CLK_AUTO when the clock is less than 400K")
Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20231204064934.21236-1-wenchao.chen@unisoc.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-sprd.c