Skip to content

Commit

Permalink
mmc: fix freeze if wifi get turned off
Browse files Browse the repository at this point in the history
Added by Samsung on JB Update

Change-Id: I9fff5c3aca00ebd011567ea8765309c0a61013eb
  • Loading branch information
andi34 committed Apr 11, 2016
1 parent 0e466c0 commit 05544cc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions drivers/mmc/host/omap_hsmmc.c
Expand Up @@ -1225,15 +1225,15 @@ static inline void omap_hsmmc_reset_controller_fsm(struct omap_hsmmc_host *host,
* Monitor a 0->1 transition first
*/
if (mmc_slot(host).features & HSMMC_HAS_UPDATED_RESET) {
while ((!(OMAP_HSMMC_READ(host->base, SYSCTL) & bit))
&& (i++ < limit))
cpu_relax();
while ((!(OMAP_HSMMC_READ(host, SYSCTL) & bit))
&& (i++ < 50))
udelay(100);
}
i = 0;

while ((OMAP_HSMMC_READ(host->base, SYSCTL) & bit) &&
(i++ < limit))
cpu_relax();
while ((OMAP_HSMMC_READ(host, SYSCTL) & bit) &&
(i++ < 50))
udelay(100);

if (OMAP_HSMMC_READ(host->base, SYSCTL) & bit)
dev_err(mmc_dev(host->mmc),
Expand Down

0 comments on commit 05544cc

Please sign in to comment.