From: Dmitry Shmidt Date: Wed, 29 Jul 2009 17:22:03 +0000 (-0700) Subject: mmc: sdio: Claim host in sdio_reset_comm() X-Git-Tag: firefly_0821_release~4090^2~855 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ec2cf6de8337b9be02f41da1411979038d3c9c09;p=firefly-linux-kernel-4.4.55.git mmc: sdio: Claim host in sdio_reset_comm() Signed-off-by: Dmitry Shmidt --- diff --git a/drivers/mmc/core/sdio.c b/drivers/mmc/core/sdio.c index ee200e3b4865..922c8e5f22c6 100644 --- a/drivers/mmc/core/sdio.c +++ b/drivers/mmc/core/sdio.c @@ -10,6 +10,7 @@ */ #include +#include #include #include @@ -1251,6 +1252,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); @@ -1291,13 +1294,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); - -