mwifiex: Fix issue in the SDIO reset path of mwifiex.
authorMaithili Hinge <maithili@marvell.com>
Mon, 23 Mar 2015 06:01:25 +0000 (23:01 -0700)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 30 Mar 2015 08:32:56 +0000 (11:32 +0300)
commit2f5872b60146eadf74b8d349a3596f5aaf687401
treed9ad816df4eda516ab95e8080b94b5d9d7f0488f
parenteaa4059d56fdbeb1633c94e82d54849688d96777
mwifiex: Fix issue in the SDIO reset path of mwifiex.

SDIO reset was not happening properly on mwifiex as cancel_work_sync
in mwifiex_sdio_remove used to kill the calling work function itself.
Due to this, the interface was not getting removed and card was not
getting added again. Reset work function has been made independent
of adapter variable and cancel_work_sync has been moved to cleanup
function.

Signed-off-by: Maithili Hinge <maithili@marvell.com>
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/mwifiex/main.c
drivers/net/wireless/mwifiex/main.h
drivers/net/wireless/mwifiex/pcie.c
drivers/net/wireless/mwifiex/sdio.c