wifi: iwlwifi: fail NIC access fast on dead NIC
authorJohannes Berg <johannes.berg@intel.com>
Thu, 21 Sep 2023 08:58:05 +0000 (11:58 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 25 Sep 2023 07:15:00 +0000 (09:15 +0200)
commit6185e1e5b4d0a7bb78de0d4b2951e1d396fc67a0
treef4bcc89c626c9860f1d2ab9eb18612c30904af21
parent0c4aa7a12a5a96604c809092ae9a94891b4f230a
wifi: iwlwifi: fail NIC access fast on dead NIC

If the NIC is already dead, as detected by the transport then
there's no point to try to grab the NIC access and time out,
we can just fail fast. This may speed up recovery.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230921110726.f3d8498c5a60.I5d0c442a731ca4c00716910d215b4bcde6963a65@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/pcie/trans.c