All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mwifiex: card reset: enable rescan of non-removable card
@ 2014-07-18  8:00 Andreas Fenkart
  2014-07-18  8:12 ` James Cameron
  2014-07-18 17:59 ` John W. Linville
  0 siblings, 2 replies; 8+ messages in thread
From: Andreas Fenkart @ 2014-07-18  8:00 UTC (permalink / raw)
  To: linux-wireless; +Cc: bzhao, daniel, Andreas Fenkart

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>
---
 drivers/net/wireless/mwifiex/sdio.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/wireless/mwifiex/sdio.c b/drivers/net/wireless/mwifiex/sdio.c
index 4ce3d7b..eff3d6e 100644
--- a/drivers/net/wireless/mwifiex/sdio.c
+++ b/drivers/net/wireless/mwifiex/sdio.c
@@ -1931,6 +1931,7 @@ static void sdio_card_reset_worker(struct work_struct *work)
 	mmc_remove_host(target);
 	/* 20ms delay is based on experiment with sdhci controller */
 	mdelay(20);
+	reset_host->rescan_entered = 0; /* rescan non-removable cards */
 	mmc_add_host(target);
 }
 static DECLARE_WORK(card_reset_work, sdio_card_reset_worker);
-- 
2.0.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-07-22  3:30 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-18  8:00 [PATCH] mwifiex: card reset: enable rescan of non-removable card Andreas Fenkart
2014-07-18  8:12 ` James Cameron
2014-07-18 17:59 ` John W. Linville
2014-07-18 19:07   ` Bing Zhao
2014-07-21  7:56     ` Andreas Fenkart
2014-07-21  8:01       ` [PATCH v2 0/1] " Andreas Fenkart
2014-07-21  8:01         ` [PATCH v2 1/1] " Andreas Fenkart
2014-07-22  3:30           ` Bing Zhao

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.