mirror_ubuntu-kernels/drivers/net/wireless/intel/iwlwifi/mvm
Emmanuel Grumbach 00520b7a2a iwlwifi: mvm: don't check system_pm_mode without mutex held
When we want to stop TX'ing because we are suspending, we
have two options: either we check system_pm_mode or we
check the mvm's status that has a bit for the suspend
flow.
The latter is better because test_bit is atomic. Also
add a call to synchronize_net after we set the bit to
make sure that all the new Tx see the bit before we
actually complete the suspend flow.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20210117130510.243c88781302.I5c0379c5a7e5d49410569e7fcd2fff7a419c6dea@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
2021-02-05 11:52:34 +02:00
..
binding.c iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
coex.c iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
constants.h iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
d3.c iwlwifi: mvm: don't check system_pm_mode without mutex held 2021-02-05 11:52:34 +02:00
debugfs-vif.c iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
debugfs.c iwlwifi: mvm: add support for new flush queue response 2021-02-05 11:52:30 +02:00
debugfs.h iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
ftm-initiator.c iwlwifi: mvm: add size checks for range response notification 2020-12-10 00:16:06 +02:00
ftm-responder.c iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
fw-api.h iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
fw.c iwlwifi: mvm: validate notification size when waiting 2020-12-10 00:16:08 +02:00
led.c iwlwifi: mvm: Fix fall-through warnings for Clang 2020-12-11 20:20:24 +02:00
mac80211.c iwlwifi: mvm: don't check system_pm_mode without mutex held 2021-02-05 11:52:34 +02:00
mac-ctxt.c iwlwifi: mvm: add notification size checks 2021-02-05 11:52:24 +02:00
Makefile
mvm.h iwlwifi: mvm: add support for new flush queue response 2021-02-05 11:52:30 +02:00
nvm.c iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
offloading.c iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
ops.c iwlwifi: mvm: handle CCA-EXT delay firmware notification 2021-02-05 11:52:30 +02:00
phy-ctxt.c iwlwifi: mvm: Fix fall-through warnings for Clang 2020-12-11 20:20:24 +02:00
power.c iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
quota.c iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
rs-fw.c iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
rs.c iwlwifi: mvm: rs: Demote non-conformant function documentation headers 2020-12-11 20:24:20 +02:00
rs.h iwlwifi: mvm: in VHT connection use only VHT capabilities 2019-11-15 09:31:56 +02:00
rx.c iwlwifi: mvm: check more notification sizes 2021-02-05 11:52:27 +02:00
rxmq.c iwlwifi: mvm: check more notification sizes 2021-02-05 11:52:27 +02:00
scan.c iwlwifi: mvm: scan: fix scheduled scan restart handling 2021-02-05 11:52:29 +02:00
sf.c iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
sta.c iwlwifi: mvm: add support for new flush queue response 2021-02-05 11:52:30 +02:00
sta.h iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
tdls.c iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
testmode.h
time-event.c iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
time-event.h iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
tt.c iwlwifi: mvm: add notification size checks 2021-02-05 11:52:24 +02:00
tx.c iwlwifi: mvm: add support for new flush queue response 2021-02-05 11:52:30 +02:00
utils.c iwlwifi: mvm: handle CCA-EXT delay firmware notification 2021-02-05 11:52:30 +02:00