platform: msm_shared: Fix MMC tuning in LK for re-tuning.
While re-tuning we send switch command which fails, as per
expectation since host clock is already on 200MHZ, need to
continue with re-tuning and change device strength to default,
similar thing done in HLOS.
Change-Id: I613692dea43dfd3fc20efc7980efa371a152d027
diff --git a/platform/msm_shared/sdhci_msm.c b/platform/msm_shared/sdhci_msm.c
index 1d4229a..1063278 100644
--- a/platform/msm_shared/sdhci_msm.c
+++ b/platform/msm_shared/sdhci_msm.c
@@ -812,11 +812,9 @@
/* Change the driver type & rerun tuning */
while(++drv_type <= MX_DRV_SUPPORTED_HS200)
{
- drv_type_changed = mmc_set_drv_type(host, card, drv_type);
- if (drv_type_changed)
- {
+ if (mmc_set_drv_type(host, card, drv_type))
goto retry_tuning;
- }
+ drv_type_changed = true;
}
}