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~2958^2~492 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3e5b5b47e1b93761146d0145766b1bdc3bcd2967;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 b90dd9e62999..a4e3733f61e0 100644 --- a/drivers/mmc/core/sdio.c +++ b/drivers/mmc/core/sdio.c @@ -10,6 +10,7 @@ */ #include +#include #include #include @@ -1224,6 +1225,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); @@ -1264,13 +1267,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); - -