All of lore.kernel.org
 help / color / mirror / Atom feed
From: gregory.greenman@intel.com
To: johannes@sipsolutions.net
Cc: linux-wireless@vger.kernel.org,
	Mukesh Sisodiya <mukesh.sisodiya@intel.com>,
	Gregory Greenman <gregory.greenman@intel.com>
Subject: [PATCH 12/15] wifi: iwlwifi: Update init sequence if tx diversity supported
Date: Thu, 13 Apr 2023 10:44:12 +0300	[thread overview]
Message-ID: <20230413102635.c2121c8694a7.Ibee3dd8765ef4b7504660fa228a7c7eff78920af@changeid> (raw)
In-Reply-To: <20230413074415.1054160-1-gregory.greenman@intel.com>

From: Mukesh Sisodiya <mukesh.sisodiya@intel.com>

PHY configuration command need to be sent to FW if the tx diversity
with SISO is supported.
This need to be sent to get the init notification from FW.

Signed-off-by: Mukesh Sisodiya <mukesh.sisodiya@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
---
 drivers/net/wireless/intel/iwlwifi/mvm/fw.c | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/fw.c b/drivers/net/wireless/intel/iwlwifi/mvm/fw.c
index a6b11bccb0c1..521eded39028 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/fw.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/fw.c
@@ -672,6 +672,13 @@ static int iwl_run_unified_mvm_ucode(struct iwl_mvm *mvm)
 		goto error;
 	}
 
+	ret = iwl_send_phy_cfg_cmd(mvm);
+	if (ret) {
+		IWL_ERR(mvm, "Failed to run PHY configuration: %d\n",
+			ret);
+		goto error;
+	}
+
 	/* We wait for the INIT complete notification */
 	ret = iwl_wait_notification(&mvm->notif_wait, &init_wait,
 				    MVM_UCODE_ALIVE_TIMEOUT);
@@ -1538,12 +1545,11 @@ int iwl_mvm_up(struct iwl_mvm *mvm)
 		ret = iwl_send_phy_db_data(mvm->phy_db);
 		if (ret)
 			goto error;
+		ret = iwl_send_phy_cfg_cmd(mvm);
+		if (ret)
+			goto error;
 	}
 
-	ret = iwl_send_phy_cfg_cmd(mvm);
-	if (ret)
-		goto error;
-
 	ret = iwl_mvm_send_bt_init_conf(mvm);
 	if (ret)
 		goto error;
-- 
2.38.1


  parent reply	other threads:[~2023-04-13  7:46 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-13  7:44 [PATCH 00/15] wifi: iwlwifi: updates intended for v6.4 2023-04-13 gregory.greenman
2023-04-13  7:44 ` [PATCH 01/15] wifi: iwlwifi: debug: fix crash in __iwl_err() gregory.greenman
2023-04-13  7:44 ` [PATCH 02/15] wifi: iwlwifi: nvm-parse: enable 160/320 MHz for AP mode gregory.greenman
2023-04-13  7:44 ` [PATCH 03/15] wifi: iwlwifi: add a validity check of queue_id in iwl_txq_reclaim gregory.greenman
2023-04-13  7:44 ` [PATCH 04/15] wifi: iwlwifi: Update configuration for SO,SOF MAC and HR RF gregory.greenman
2023-04-13  7:44 ` [PATCH 05/15] wifi: iwlwifi: mvm: convert TID to FW value on queue remove gregory.greenman
2023-04-13  7:44 ` [PATCH 06/15] wifi: iwlwifi: mvm: use OFDM rate if IEEE80211_TX_CTL_NO_CCK_RATE is set gregory.greenman
2023-04-13  7:44 ` [PATCH 07/15] wifi: iwlwifi: mvm: enable bz hw checksum from c step gregory.greenman
2023-04-13  7:44 ` [PATCH 08/15] wifi: iwlwifi: mvm: fix A-MSDU checks gregory.greenman
2023-04-13  7:44 ` [PATCH 09/15] wifi: iwlwifi: mvm: refactor TX csum mode check gregory.greenman
2023-04-13  7:44 ` [PATCH 10/15] wifi: iwlwifi: nvm: Update HE capabilities on 6GHz band for EHT device gregory.greenman
2023-04-13  7:44 ` [PATCH 11/15] wifi: iwlwifi: mvm: move function sequence gregory.greenman
2023-04-13  7:44 ` gregory.greenman [this message]
2023-04-13  7:44 ` [PATCH 13/15] wifi: iwlwifi: Update configurations for Bnj-a0 and specific rf devices gregory.greenman
2023-04-13  7:44 ` [PATCH 14/15] wifi: iwlwifi: trans: don't trigger d3 interrupt twice gregory.greenman
2023-04-13  7:44 ` [PATCH 15/15] wifi: iwlwifi: mvm: don't set CHECKSUM_COMPLETE for unsupported protocols gregory.greenman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230413102635.c2121c8694a7.Ibee3dd8765ef4b7504660fa228a7c7eff78920af@changeid \
    --to=gregory.greenman@intel.com \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=mukesh.sisodiya@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.