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~7613^2~839 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7e053b36fc70f96f2e0181e9a4d9ec3f3cfe235f;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 74d19f37dd19..57c752b1b204 100644 --- 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); - -