mmc: jz4740: Work around bug on JZ4760(B)
authorPaul Cercueil <paul@crapouillou.net>
Tue, 31 Jan 2023 21:02:28 +0000 (21:02 +0000)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 13 Feb 2023 23:14:05 +0000 (00:14 +0100)
commit3f18c5046e633cc4bbad396b74c05d46d353033d
tree5401d4bb1722272945291a8b37d34ea530026ba8
parentcf4c9d2ac1e42c7d18b921bec39486896645b714
mmc: jz4740: Work around bug on JZ4760(B)

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>
drivers/mmc/host/jz4740_mmc.c