aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorSeungwon Jeon <tgih.jun@samsung.com>2011-12-26 04:03:05 -0500
committerChris Ball <cjb@laptop.org>2012-01-11 23:58:46 -0500
commit17e9ff559a7dbb7a6df332007d2ffcd3e7d83fba (patch)
tree061d911ea055301633ac394990e497a8ba67d94d /drivers/mmc
parentd83b6e035f983ec2833bf175ae093281b42ba551 (diff)
mmc: core: Add claiming of hosts during mmc_cache_ctrl
While calling mmc_cache_ctrl() a host is not claimed. This patch adds the mmc_try_claim_host() for quick response in suspend. Signed-off-by: Seungwon Jeon <tgih.jun@samsung.com> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/core/core.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c
index a2aa860956ef..22050525be84 100644
--- a/drivers/mmc/core/core.c
+++ b/drivers/mmc/core/core.c
@@ -2355,7 +2355,13 @@ int mmc_suspend_host(struct mmc_host *host)
2355 cancel_delayed_work(&host->disable); 2355 cancel_delayed_work(&host->disable);
2356 cancel_delayed_work(&host->detect); 2356 cancel_delayed_work(&host->detect);
2357 mmc_flush_scheduled_work(); 2357 mmc_flush_scheduled_work();
2358 err = mmc_cache_ctrl(host, 0); 2358 if (mmc_try_claim_host(host)) {
2359 err = mmc_cache_ctrl(host, 0);
2360 mmc_do_release_host(host);
2361 } else {
2362 err = -EBUSY;
2363 }
2364
2359 if (err) 2365 if (err)
2360 goto out; 2366 goto out;
2361 2367