]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Jan 2024 16:10:36 +0000 (17:10 +0100)
commit28c9222e29e5b89923d4107eed22b6fa844d668d
tree53d7fb57b741a6bd4ae7a96184baa46d54f9b65a
parent2813a434d461f05e82a25cff0b19368171332071
mmc: sdhci-sprd: Fix eMMC init failure after hw reset

commit 8abf77c88929b6d20fa4f9928b18d6448d64e293 upstream.

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