summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/marvell/mwifiex/sdio.h
diff options
context:
space:
mode:
authorXinming Hu <huxm@marvell.com>2016-12-14 17:10:49 +0300
committerKalle Valo <kvalo@codeaurora.org>2017-01-12 17:49:17 +0300
commitc742e623e9415d3e1e5af00470ae5086fa6dd233 (patch)
tree2e456fe0524f3455bbcd03ecb4a11066a6317acf /drivers/net/wireless/marvell/mwifiex/sdio.h
parentec750f1082d7cc08ac6d0173e6e377d568c5b2b5 (diff)
downloadlinux-c742e623e9415d3e1e5af00470ae5086fa6dd233.tar.xz
mwifiex: sdio card reset enhancement
Commit b4336a282db8 ("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>
Diffstat (limited to 'drivers/net/wireless/marvell/mwifiex/sdio.h')
-rw-r--r--drivers/net/wireless/marvell/mwifiex/sdio.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/wireless/marvell/mwifiex/sdio.h b/drivers/net/wireless/marvell/mwifiex/sdio.h
index cdbf3a3ac7f9..afa10d5031cf 100644
--- a/drivers/net/wireless/marvell/mwifiex/sdio.h
+++ b/drivers/net/wireless/marvell/mwifiex/sdio.h
@@ -267,9 +267,6 @@ struct sdio_mmc_card {
struct mwifiex_sdio_mpa_tx mpa_tx;
struct mwifiex_sdio_mpa_rx mpa_rx;
-
- /* needed for card reset */
- const struct sdio_device_id *device_id;
};
struct mwifiex_sdio_device {