Merge "mmc: sdhci: remove incorrect spinlock release" into msm-4.9
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
index 47096fd..744e520 100644
--- a/drivers/mmc/host/sdhci.c
+++ b/drivers/mmc/host/sdhci.c
@@ -1523,7 +1523,7 @@
sdhci_writew(host, clk, SDHCI_CLOCK_CONTROL);
/* Wait max 20 ms */
- timeout = 20000;
+ timeout = 20;
while (!((clk = sdhci_readw(host, SDHCI_CLOCK_CONTROL))
& SDHCI_CLOCK_INT_STABLE)) {
if (timeout == 0) {
@@ -1533,9 +1533,7 @@
return;
}
timeout--;
- spin_unlock_irq(&host->lock);
usleep_range(900, 1100);
- spin_lock_irq(&host->lock);
}
clk |= SDHCI_CLOCK_CARD_EN;