diff options
author | Christophe Kerello <christophe.kerello@foss.st.com> | 2025-08-12 15:55:26 +0200 |
---|---|---|
committer | Patrice Chotard <patrice.chotard@foss.st.com> | 2025-08-25 16:47:39 +0200 |
commit | 1067d2060ff017fb58758c0c21ae35504d144ea7 (patch) | |
tree | 5ed67e70b3c234c0646098584fed7d41e08758c1 /drivers/spi/atmel-quadspi.c | |
parent | 4c28c4d9a3a814cebb93e20842ed2c1c90f703d3 (diff) |
mmc: stm32_sdmmc2: avoid infinite while loop
Avoid unlimited while loop by adding a timeout. The timeout is
calculated based on a minimal throughput of 256 KB/s.
The timeout is set at least to 2 seconds.
Signed-off-by: Christophe Kerello <christophe.kerello@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Diffstat (limited to 'drivers/spi/atmel-quadspi.c')
0 files changed, 0 insertions, 0 deletions