Due to failures to find failing region issues seen on some boards, add retry tuning sequence to make the tuning algorithm more robust. The tuning algorithm will re-execute up to 10 times if there is no failing or passing itapdly. Due to the same issue above, add prints to the tuning algorithm to make debugging these corner-cases easier. Changes since v1: - Change prints to dev_dbg - Change logic in patch 1/2 from using recursive aproach to calling a function iteratively for retuning link to v1: https://lore.kernel.org/linux-mmc/20240815201542.421653-1-jm@xxxxxx Judith Mendez (2): mmc: sdhci_am654: Add retry tuning mmc: sdhci_am654: Add prints to tuning algorithm drivers/mmc/host/sdhci_am654.c | 59 +++++++++++++++++++++++++++------- 1 file changed, 47 insertions(+), 12 deletions(-) base-commit: 538076ce6b8dfe5e8e8d9d250298030f165d8457 -- 2.46.0