mwifiex: card reset: enable rescan of non-removable card
authorAndreas Fenkart <afenkart@gmail.com>
Mon, 21 Jul 2014 08:01:52 +0000 (10:01 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 22 Jul 2014 17:53:17 +0000 (13:53 -0400)
mmc_rescan will scan for non-removable cards only once, hence the card
will not be rediscovered.

Signed-off-by: Andreas Fenkart <afenkart@gmail.com>
Acked-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/sdio.c

index 3e48ef5ca53c6f86b18b4e5ca8e7a77057c4d87d..1770fa3fc1e621fc2965cde14581c337c1691d98 100644 (file)
@@ -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);
 }