]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: jz4740: Work around bug on JZ4760(B)
authorPaul Cercueil <paul@crapouillou.net>
Tue, 31 Jan 2023 21:02:28 +0000 (21:02 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Feb 2023 11:59:47 +0000 (12:59 +0100)
commit4cd228d26d622dd78b57af48532e6e2612fe8494
tree443919f3e75f6b7200c9f46d3bc6b1fa1faf3040
parentf4bfafa2ce9c82a05ba46d3ff79deda783a19e46
mmc: jz4740: Work around bug on JZ4760(B)

commit 2e5745b5ef3c4d05213be5785a02596b10bba871 upstream.

On JZ4760 and JZ4760B, SD cards fail to run if the maximum clock
rate is set to 50 MHz, even though the controller officially does
support it.

Until the actual bug is found and fixed, limit the maximum clock rate to
24 MHz.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20230131210229.68129-1-paul@crapouillou.net
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/host/jz4740_mmc.c