summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/marvell/mwifiex/pcie.h
diff options
context:
space:
mode:
authorGanapathi Bhat <gbhat@marvell.com>2016-11-16 18:39:09 +0530
committerKalle Valo <kvalo@codeaurora.org>2017-01-12 16:44:30 +0200
commit3860e5e39532050c010a0c61c3a980f4a7d4542c (patch)
tree9c630c9624aa11061a8d9d0b2438cae194c01e69 /drivers/net/wireless/marvell/mwifiex/pcie.h
parent41efaf5824e7cb16c54bbec1273d86d80cdac283 (diff)
downloadblackbird-op-linux-3860e5e39532050c010a0c61c3a980f4a7d4542c.tar.gz
blackbird-op-linux-3860e5e39532050c010a0c61c3a980f4a7d4542c.zip
mwifiex: move pcie_work and related variables inside card
Currently pcie_work and related variables are global. It may create problem while supporting multiple devices simultaneously. Let's move it inside card structure so that separate instance will be created/ cancelled in init/teardown threads of each connected devices. Signed-off-by: Ganapathi Bhat <gbhat@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/pcie.h')
-rw-r--r--drivers/net/wireless/marvell/mwifiex/pcie.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/marvell/mwifiex/pcie.h b/drivers/net/wireless/marvell/mwifiex/pcie.h
index ae3365d1c34e..21ba5e6a4c2a 100644
--- a/drivers/net/wireless/marvell/mwifiex/pcie.h
+++ b/drivers/net/wireless/marvell/mwifiex/pcie.h
@@ -386,6 +386,8 @@ struct pcie_service_card {
#endif
struct mwifiex_msix_context msix_ctx[MWIFIEX_NUM_MSIX_VECTORS];
struct mwifiex_msix_context share_irq_ctx;
+ struct work_struct work;
+ unsigned long work_flags;
};
static inline int
OpenPOWER on IntegriCloud