msm: sdio: add polling for func#1 init
In case the MDM starts after the MSM, there is a chance that init func1
fails.
Signed-off-by: Yaniv Gardi <ygardi@codeaurora.org>
diff --git a/arch/arm/mach-msm/sdio_al.c b/arch/arm/mach-msm/sdio_al.c
index 25baedb..714a61b 100644
--- a/arch/arm/mach-msm/sdio_al.c
+++ b/arch/arm/mach-msm/sdio_al.c
@@ -3342,7 +3342,7 @@
sdio_claim_host(card->sdio_func[0]);
/* Init Func#1 */
- ret = sdio_enable_func(card->sdio_func[0]);
+ ret = sdio_al_enable_func_retry(card->sdio_func[0], "Init Func#1");
if (ret) {
pr_err(MODULE_NAME ":Fail to enable Func#%d\n",
card->sdio_func[0]->num);