]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: sdio card reset enhancement
authorXinming Hu <huxm@marvell.com>
Wed, 14 Dec 2016 14:10:49 +0000 (19:40 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 12 Jan 2017 14:49:17 +0000 (16:49 +0200)
commit82b9e988908b71df8f2be6897beccc2f5d19de6e
tree2e456fe0524f3455bbcd03ecb4a11066a6317acf
parent3fe2ceaf4b9c1ab8729d64f49e9bcf02e80b34b8
mwifiex: sdio card reset enhancement

Commit 6faccb92ba77 ("mwifiex: sdio: reset adapter using mmc_hw_reset")
introduces a simple sdio card reset solution based on card remove and
re-probe. This solution has proved to be vulnerable, as card and
adapter structures are not protected, concurrent access will result in
kernel panic issues.

Let's reuse PCIe FLR's functions for SDIO reset to avoid freeing and
reallocating adapter and card structures.

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