]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: pcie: avoid unnecessarily taking spinlock
authorJohannes Berg <johannes.berg@intel.com>
Tue, 30 Mar 2021 13:24:50 +0000 (16:24 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Wed, 14 Apr 2021 09:05:26 +0000 (12:05 +0300)
commit314e7962092134340e523d35cd63f7a660c94928
treee0b0fda5f101827df401f57ecc223c0dc2fc3ac0
parent811b7ec7bc3f1453b0c3583e5ca3e8eae6be7577
iwlwifi: pcie: avoid unnecessarily taking spinlock

Most devices don't set the apmg_wake_up_wa flag, so we don't do
anything for them. Avoid taking the spinlock for every command
unless the device needs this workaround.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20210330162204.1ab60af3f318.I51cc202f68a2a953223e70c3e8610343412961b6@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/pcie/tx.c