platform: msm_shared: Add print if all tuning phases pass
While executing tuning for hs200 mode add a print to indicate
if all tuning phases pass. This will help in identify the issues
with tuning without changing the debug mode for sdhc driver.
Change-Id: I293ad9370aa66c663da04c3eb1e2f19cabc37cf4
diff --git a/platform/msm_shared/sdhci_msm.c b/platform/msm_shared/sdhci_msm.c
index 4e83a55..f6d66da 100644
--- a/platform/msm_shared/sdhci_msm.c
+++ b/platform/msm_shared/sdhci_msm.c
@@ -802,6 +802,9 @@
if (drv_type_changed)
mmc_set_drv_type(host, card, 0);
+ if (tuned_phase_cnt == MAX_PHASES)
+ dprintf(CRITICAL, "WARNING: All phase passed.The selected phase may not be optimal\n");
+
/* Find the appropriate tuned phase */
if (tuned_phase_cnt)
{