]> 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>
Mon, 15 Jan 2024 17:51:24 +0000 (18:51 +0100)
commit06bb52d2efb38d925a4170b335c26cab665913bc
tree240a59135316081706cc1516f904b2b23577357d
parent6722186854a7b2d143d7d85264687c38f88ca518
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