[Linux-stm32] [PATCH v2 3/5] mmc: mmci: stm32: use the delay block above 100 MHz on stm32mp25 SoC
Christophe KERELLO
christophe.kerello at foss.st.com
Thu Nov 5 09:17:08 CET 2026
Hello Mateusz,
On 11/4/26 16:27, Mateusz Nowicki wrote:
> From: Christophe Kerello<christophe.kerello at foss.st.com>
>
> On stm32mp25 SoC, the delay block has to be used only for an external
> data frequency above 100 MHz. Skip the tuning up to that frequency, keep
> 50 MHz for stm32mp15 as before.
>
> Fixes: b5c3eb385797 ("mmc: mmci: stm32: add delay block support for STM32MP25")
> Cc:stable at vger.kernel.org
> Signed-off-by: Christophe Kerello<christophe.kerello at foss.st.com>
> [Mateusz: reworded the commit message, check dlyb before reading
> min_freq, added Fixes and Cc stable]
Thanks for the fix.
> Signed-off-by: Mateusz Nowicki<mateusz.nowicki at posteo.net>
> ---
>
> Notes:
> On the STM32MP257F-DK (SDMMC2 kernel clock 200 MHz, eMMC in HS200 at
> 100 MHz) the writes failed with I/O errors in all 9 test runs without
> this change, with sdmmc2 pins_a or pins_b and with or without NEGEDGE.
> With it all 6 runs were correct, on both pin groups.
>
> drivers/mmc/host/mmci_stm32_sdmmc.c | 16 +++++++++++-----
> 1 file changed, 11 insertions(+), 5 deletions(-)
Reviewed-by: Christophe Kerello <christophe.kerello at foss.st.com>
Regards,
Christophe Kerello.
More information about the Linux-stm32
mailing list