diff options
author | Haim Dreyfuss <haim.dreyfuss@intel.com> | 2019-08-12 13:25:42 +0300 |
---|---|---|
committer | Luca Coelho <luciano.coelho@intel.com> | 2019-10-09 13:01:04 +0300 |
commit | a4584729291c71c5c14718ff00ea6c5f971c45b2 (patch) | |
tree | e555c04ec24bb8d3256c995a40b67c0d89b82afa | |
parent | 3ed83da39aed275a5b74c74f77e85c839ad2efe9 (diff) | |
download | linux-stable-a4584729291c71c5c14718ff00ea6c5f971c45b2.tar.gz linux-stable-a4584729291c71c5c14718ff00ea6c5f971c45b2.tar.bz2 linux-stable-a4584729291c71c5c14718ff00ea6c5f971c45b2.zip |
iwlwifi: mvm: force single phy init
The PHY is initialized during device initialization, but devices with
the tx_siso_diversity flag set need to send PHY_CONFIGURATION_CMD first,
otherwise the PHY would be reinitialized, causing a SYSASSERT.
To fix this, use a bit that tells the FW not to complete the PHY
initialization before a PHY_CONFIGURATION_CMD is received.
Signed-off-by: Haim Dreyfuss <haim.dreyfuss@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
-rw-r--r-- | drivers/net/wireless/intel/iwlwifi/mvm/fw.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/fw.c b/drivers/net/wireless/intel/iwlwifi/mvm/fw.c index b2eb18eedf02..0d2229319261 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/fw.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/fw.c @@ -420,6 +420,9 @@ static int iwl_run_unified_mvm_ucode(struct iwl_mvm *mvm, bool read_nvm) }; int ret; + if (mvm->trans->cfg->tx_with_siso_diversity) + init_cfg.init_flags |= cpu_to_le32(BIT(IWL_INIT_PHY)); + lockdep_assert_held(&mvm->mutex); mvm->rfkill_safe_init_done = false; |