projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c87f8d4
)
mmc: sdio: Claim host in sdio_reset_comm()
author
Dmitry Shmidt
<dimitrysh@google.com>
Wed, 29 Jul 2009 17:22:03 +0000
(10:22 -0700)
committer
Colin Cross
<ccross@android.com>
Tue, 14 Jun 2011 16:08:52 +0000
(09:08 -0700)
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
drivers/mmc/core/sdio.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/core/sdio.c
b/drivers/mmc/core/sdio.c
index 74d19f37dd19d4d2315229dfc6953992f2b066b5..57c752b1b20453929d69e0ccf003349650cc5719 100644
(file)
--- a/
drivers/mmc/core/sdio.c
+++ b/
drivers/mmc/core/sdio.c
@@
-891,6
+891,8
@@
int sdio_reset_comm(struct mmc_card *card)
int err;
printk("%s():\n", __func__);
+ mmc_claim_host(host);
+
mmc_go_idle(host);
mmc_set_clock(host, host->f_min);
@@
-931,13
+933,12
@@
int sdio_reset_comm(struct mmc_card *card)
err = sdio_enable_wide(card);
if (err)
goto err;
-
+ mmc_release_host(host);
return 0;
-
err:
+err:
printk("%s: Error resetting SDIO communications (%d)\n",
mmc_hostname(host), err);
+ mmc_release_host(host);
return err;
}
EXPORT_SYMBOL(sdio_reset_comm);
-
-