]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mmc: mmc_spi: allow for spi controllers incapable of getting as low as 400k
authorConor Dooley <conor.dooley@microchip.com>
Tue, 25 Jun 2024 12:33:21 +0000 (13:33 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 8 Jul 2024 09:34:57 +0000 (11:34 +0200)
commita1382d193ca449de550b393dd6f763ff7dc8cf75
treebe871e34de61f4a8a3433a48956536581bf663d3
parentd0f459259c13163336242fecca8468be8e543849
mmc: mmc_spi: allow for spi controllers incapable of getting as low as 400k

Some controllers may not be able to reach a bus clock as low as 400 KHz
due to a lack of sufficient divisors. In these cases, the SD card slot
becomes non-functional as Linux continuously attempts to set the bus
clock to 400 KHz. If the controller is incapable of getting that low,
set its minimum frequency instead. While this may eliminate some SD
cards, it allows those capable of operating at the controller's minimum
frequency to be used.

Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20240625-gigantic-frown-1ef4afa3e6fa@wendy
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/mmc_spi.c