iwlwifi: pcie: set LTR to avoid completion timeout
authorJohannes Berg <johannes.berg@intel.com>
Sat, 7 Nov 2020 08:50:10 +0000 (10:50 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 10 Nov 2020 18:45:35 +0000 (20:45 +0200)
commitedb625208d84aef179e3f16590c1c582fc5fdae6
tree04ff3e121024dc108ac919126c813f0701726bd8
parent97cc16943f23078535fdbce4f6391b948b4ccc08
iwlwifi: pcie: set LTR to avoid completion timeout

On some platforms, the preset values aren't correct and then we may
get a completion timeout in the firmware. Change the LTR configuration
to avoid that. The firmware will do some more complex reinit of this
later, but for the boot process we use ~250usec.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/iwlwifi.20201107104557.d83d591c05ba.I42885c9fb500bc08b9a4c07c4ff3d436cc7a3c84@changeid
drivers/net/wireless/intel/iwlwifi/iwl-csr.h
drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info-gen3.c