]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdhci-iproc: Cap min clock frequency on BCM2711
authorNicolas Saenz Julienne <nsaenz@kernel.org>
Sat, 7 Aug 2021 11:06:35 +0000 (13:06 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 16 Aug 2021 10:09:11 +0000 (12:09 +0200)
commitb428f3adf222ddca1f7bde92091e0b1b386743b0
treeee73018541f74e1ffc3ecd97dd8a871cd8aa6b3b
parentfad759d01c9277c562fff1f401488af44943ceb9
mmc: sdhci-iproc: Cap min clock frequency on BCM2711

There is a known bug on BCM2711's SDHCI core integration where the
controller will hang when the difference between the core clock and the
bus clock is too great. Specifically this can be reproduced under the
following conditions:

- No SD card plugged in, polling thread is running, probing cards at
  100 kHz.
- BCM2711's core clock configured at 500MHz or more.

So set 200 kHz as the minimum clock frequency available for that board.

For more information on the issue see this:
https://lore.kernel.org/linux-mmc/20210322185816.27582-1-nsaenz@kernel.org/T/#m11f2783a09b581da6b8a15f302625b43a6ecdeca

Fixes: 9196979ad2f6 ("mmc: sdhci-iproc: Add support for emmc2 of the BCM2711")
Signed-off-by: Nicolas Saenz Julienne <nsaenz@kernel.org>
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/1628334401-6577-5-git-send-email-stefan.wahren@i2se.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-iproc.c