Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 284535
b: refs/heads/master
c: 0db13fc
h: refs/heads/master
i:
  284533: ce822bc
  284531: 5329fee
  284527: dd009a2
v: v3
  • Loading branch information
Guennadi Liakhovetski authored and Chris Ball committed Jan 12, 2012
1 parent f1b29de commit f82d299
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3abc1e804253add41990cbe1461e79c1165108e0
refs/heads/master: 0db13fc2abbb0b1a8d8efee20dfbd7f3c5d54022
9 changes: 6 additions & 3 deletions trunk/drivers/mmc/core/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2175,6 +2175,7 @@ void mmc_stop_host(struct mmc_host *host)

mmc_bus_get(host);
if (host->bus_ops && !host->bus_dead) {
/* Calling bus_ops->remove() with a claimed host can deadlock */
if (host->bus_ops->remove)
host->bus_ops->remove(host);

Expand Down Expand Up @@ -2398,7 +2399,9 @@ int mmc_suspend_host(struct mmc_host *host)
if (err == -ENOSYS || !host->bus_ops->resume) {
/*
* We simply "remove" the card in this case.
* It will be redetected on resume.
* It will be redetected on resume. (Calling
* bus_ops->remove() with a claimed host can
* deadlock.)
*/
if (host->bus_ops->remove)
host->bus_ops->remove(host);
Expand Down Expand Up @@ -2491,11 +2494,11 @@ int mmc_pm_notify(struct notifier_block *notify_block,
if (!host->bus_ops || host->bus_ops->suspend)
break;

mmc_claim_host(host);

/* Calling bus_ops->remove() with a claimed host can deadlock */
if (host->bus_ops->remove)
host->bus_ops->remove(host);

mmc_claim_host(host);
mmc_detach_bus(host);
mmc_power_off(host);
mmc_release_host(host);
Expand Down

0 comments on commit f82d299

Please sign in to comment.