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:
a31e8ff
)
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
Arve Hjønnevåg
<arve@android.com>
Mon, 8 Feb 2010 23:08:36 +0000
(15:08 -0800)
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 ebfdea444f4222b0417ac30a6e28815f7cf68b6f..a78b4dc3fd9eebbbada85050fd5439685045a9ab 100644
(file)
--- a/
drivers/mmc/core/sdio.c
+++ b/
drivers/mmc/core/sdio.c
@@
-623,6
+623,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);
@@
-663,13
+665,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);
-
-