]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Dec 2020 09:58:30 +0000 (10:58 +0100)
commitc918e4af11da8770fac2b78bab6dde38eb2c2705
treeb93942c95cdf1153cc78b6e769fe1923a0d2dec0
parente0ad0bedc35e501539c87779b1acb0c3aa56207d
iwlwifi: pcie: set LTR to avoid completion timeout

[ Upstream commit edb625208d84aef179e3f16590c1c582fc5fdae6 ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/intel/iwlwifi/iwl-csr.h
drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info-gen3.c