platform: msm_shared: Reduce polling interval
sdhc driver looks for command and transfer complete interrupts
with polling interval of 500 & 1000 us respectively. Instead of
this we can reduce the polling interval & increase the retry count
to improve the performance. Also fix typo to remove ';' at the end
of while loop.
CRs-Fixed: 696416
Change-Id: Id40a45fa03b5c946bf9cd7e5f33de2c78646f106
diff --git a/platform/msm_shared/include/sdhci.h b/platform/msm_shared/include/sdhci.h
index beebb09..7dc93a6 100644
--- a/platform/msm_shared/include/sdhci.h
+++ b/platform/msm_shared/include/sdhci.h
@@ -288,8 +288,8 @@
#define SDHCI_READ_MODE BIT(4)
#define SDHCI_SWITCH_CMD 6
#define SDHCI_CMD_TIMEOUT 0xF
-#define SDHCI_MAX_CMD_RETRY 10000
-#define SDHCI_MAX_TRANS_RETRY 10000
+#define SDHCI_MAX_CMD_RETRY 5000000
+#define SDHCI_MAX_TRANS_RETRY 10000000
#define SDHCI_PREP_CMD(c, f) ((((c) & 0xff) << 8) | ((f) & 0xff))