iwlwifi: pcie: set LTR on more devices
authorJohannes Berg <johannes.berg@intel.com>
Fri, 15 Jan 2021 11:05:54 +0000 (13:05 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 25 Jan 2021 13:53:03 +0000 (15:53 +0200)
commited0022da8bd9a3ba1c0e1497457be28d52afa7e1
tree9b9069b75677fd9a4309ebff5b4cd1994070ff05
parent0f8d5656b3fd100c132b02aa72038f032fc6e30e
iwlwifi: pcie: set LTR on more devices

To avoid completion timeouts during device boot, set up the
LTR timeouts on more devices - similar to what we had before
for AX210.

This also corrects the AX210 workaround to be done only on
discrete (non-integrated) devices, otherwise the registers
have no effect.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Fixes: edb625208d84 ("iwlwifi: pcie: set LTR to avoid completion timeout")
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/iwlwifi.20210115130252.fb819e19530b.I0396f82922db66426f52fbb70d32a29c8fd66951@changeid
drivers/net/wireless/intel/iwlwifi/iwl-prph.h
drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info-gen3.c