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)
commit72bc934cb393d9aa0a3a73026c020da36e817fa1
treee0b0fda5f101827df401f57ecc223c0dc2fc3ac0
parent7686fd52b8757aaedb4cf3b38bf02d1911674545
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