Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2063025rwl; Thu, 13 Apr 2023 00:47:32 -0700 (PDT) X-Google-Smtp-Source: AKy350ZkwMvsKp5FMHERdxs7fnBXyRBX8MIjJ39ovIIwjf5JW9kCb3/UdfnXIlTenhMRIDCR98N9 X-Received: by 2002:a17:906:168c:b0:930:fa8e:9597 with SMTP id s12-20020a170906168c00b00930fa8e9597mr1772897ejd.42.1681372052291; Thu, 13 Apr 2023 00:47:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681372052; cv=none; d=google.com; s=arc-20160816; b=KBAAfU8jTeXY5ZrVBKZu6IsJwGdnhv7ar2Ts4eGC7F1pIQKe4Ce4k3eLislnxDeCH0 Wa2TeFyAnfaoin550UIFTvyItzXHBgBNXgpPJetzfWwMRIgbjgQh4cfQ0fv2Hdy7bD2b 25q23JqZ88wP70tf8brIF8KHnK6eXoI0cVN4wSyei6GmfLaPgU3jjhnDXf4HoFccJrPP IYCstGPj+MlDP3FnGOx7vxzvJ9IoR+sOLLlQ3ZMcjWr9xbbgfKaPYqUt0m9EfK7lfU// 1dFpatDK1s25UyrHL6DslQYsvGOScIZXEbzrMVgPsAs3G6hnMwYReqHTar/O28AUr/CD cHYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=KlyrHBn/i6RaMu1kovu9MoZFmsfjcaqejZW128iLtKI=; b=KpCVXNTIfLt34Zfs620U1BfgcX+cQ5AutiVaBZE5qDo+UuB+bRgR4xYAfcYajktfi0 Zy0Zl6VlKaGdVjH9yprfsCU06li76erZoyFpngY09HjNMPaUxstxxXGXcfQ6nbrgYljC 6Gbr1P/H+sok/8CPTFrsuxJO0NqggbeYSPMOcvY03HZ2c1ZEJU7keSNwJ9PQbMZiN+sc gxRhBh0xnx3A3gD2gziOtbJa4Gw+Nw52h8xnl+cq9ieWpyIp+9XYV7ora+2tiWIybrv7 rb1QbVzA3WB3x/WDl05vU339x7CnSKWjnmR1tumOfg/8puVxdiSRqWmM1AZ3opaxN4EY DH2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=hNNWLq4n; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ft34-20020a170907802200b0092c8da1e5edsi1051838ejc.611.2023.04.13.00.47.17; Thu, 13 Apr 2023 00:47:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=hNNWLq4n; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230096AbjDMHqS (ORCPT + 61 others); Thu, 13 Apr 2023 03:46:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229586AbjDMHqQ (ORCPT ); Thu, 13 Apr 2023 03:46:16 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 102175FC6 for ; Thu, 13 Apr 2023 00:46:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1681371976; x=1712907976; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=QwIQBeHp9Ifk3lWccrFnj7ovqROOAirmygcX2aTI84A=; b=hNNWLq4nhjjkTBczB5zuorb6otZGfX7HdpWRi5sdM/gqgyO3g3qR94ht fb7qfMyVCMslhySoE8Rf/WMKTRHadP/ji9WmAEOth3uKQUDog/ziYmJzr 2zkNDAtkNJk+N1NT+0cVoV0ax3/QTeqTrgPxNjOe31WuwF9pMEATR3dVz qzkmC+abQ2QB734pOIjK0pMeqvxakTHCEenPDwquD+wnRxp3CuiAWJlhk KTKLgufPRGlaw8mOUesB0me7LI5r9gtxVo+B//d9s5hBSQuv/EPiRVXR0 VYfbwhGKde4CHwR03E3Yhx8JCAe/L5ri4cxUbVDUadk/D6PkR3ge1jjcr A==; X-IronPort-AV: E=McAfee;i="6600,9927,10678"; a="323736098" X-IronPort-AV: E=Sophos;i="5.98,341,1673942400"; d="scan'208";a="323736098" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Apr 2023 00:45:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10678"; a="833034821" X-IronPort-AV: E=Sophos;i="5.98,341,1673942400"; d="scan'208";a="833034821" Received: from apeled2-mobl.ger.corp.intel.com (HELO ggreenma-mobl2.lan) ([10.251.184.75]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Apr 2023 00:45:34 -0700 From: gregory.greenman@intel.com To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Mukesh Sisodiya , Gregory Greenman Subject: [PATCH 12/15] wifi: iwlwifi: Update init sequence if tx diversity supported Date: Thu, 13 Apr 2023 10:44:12 +0300 Message-Id: <20230413102635.c2121c8694a7.Ibee3dd8765ef4b7504660fa228a7c7eff78920af@changeid> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230413074415.1054160-1-gregory.greenman@intel.com> References: <20230413074415.1054160-1-gregory.greenman@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Mukesh Sisodiya 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 Signed-off-by: Gregory Greenman --- 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