iwlwifi: pcie: try to grab NIC access early
authorJohannes Berg <johannes.berg@intel.com>
Sun, 17 Oct 2021 13:59:45 +0000 (16:59 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 22 Oct 2021 07:49:03 +0000 (10:49 +0300)
commit2fd8aaaeb87441e2577e8e55373e9b3b221dc4b0
treeca4649d2389f283d9b3196843f2291800781ccc5
parent75da590ffae71db4567adffff0288bea70a41219
iwlwifi: pcie: try to grab NIC access early

Sometimes some NICs may fail to initialize, but if we have
such a scenario we may only see an alive timeout (i.e. the
firmware doesn't send us the alive message), and that will
only cause us to fail the interface up.

Try to once grab NIC access during device probe to ensure
we can properly talk to the hardware at all, and to do all
the potential workarounds in that function.

Since we now finish NIC init here, we can remove it from
the later potential read of the RF ID.

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.20211017165728.604dfc8f43bd.I07b58a5c9238f75413a91198452ba1268ee79425@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/pcie/drv.c