mwifiex: wait firmware dump complete during card remove process
authorXinming Hu <huxm@marvell.com>
Wed, 16 Nov 2016 13:09:08 +0000 (18:39 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 12 Jan 2017 14:44:30 +0000 (16:44 +0200)
commit41efaf5824e7cb16c54bbec1273d86d80cdac283
treea4bcc3fbfe3782d49698358e40a08979e52d04d0
parentd27121fca12957036077ef56ee0146c99b8a92f7
mwifiex: wait firmware dump complete during card remove process

Wait for firmware dump complete in card remove function.
For sdio interface, there are two diffenrent cases,
card reset trigger sdio_work and firmware dump trigger sdio_work.
Do code rearrangement for distinguish between these two cases.

Signed-off-by: Xinming Hu <huxm@marvell.com>
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Reviewed-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/pcie.c
drivers/net/wireless/marvell/mwifiex/sdio.c