From: Andreas Fenkart Date: Mon, 21 Jul 2014 08:01:52 +0000 (+0200) Subject: mwifiex: card reset: enable rescan of non-removable card X-Git-Tag: v4.9.8~5959^2~12^2~60 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=81df6cafe28b358739d121205e1ddaeec2ed5b15;p=platform%2Fkernel%2Flinux-rpi3.git mwifiex: card reset: enable rescan of non-removable card mmc_rescan will scan for non-removable cards only once, hence the card will not be rediscovered. Signed-off-by: Andreas Fenkart Acked-by: Bing Zhao Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/mwifiex/sdio.c b/drivers/net/wireless/mwifiex/sdio.c index 3e48ef5..1770fa3 100644 --- a/drivers/net/wireless/mwifiex/sdio.c +++ b/drivers/net/wireless/mwifiex/sdio.c @@ -1954,6 +1954,7 @@ static void mwifiex_sdio_card_reset_work(struct mwifiex_adapter *adapter) mmc_remove_host(target); /* 20ms delay is based on experiment with sdhci controller */ mdelay(20); + target->rescan_entered = 0; /* rescan non-removable cards */ mmc_add_host(target); }