Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2477175rdb; Thu, 21 Sep 2023 22:35:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFT4XUiAQxZsEJ2N0C3ZA5m/QjcT2Qv+lPKTOq0LhF5QSHZespnUCM44U7L6//dzp1ir5bi X-Received: by 2002:a81:6946:0:b0:595:80e4:907d with SMTP id e67-20020a816946000000b0059580e4907dmr7482642ywc.32.1695360917907; Thu, 21 Sep 2023 22:35:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695360917; cv=none; d=google.com; s=arc-20160816; b=wjHWP4HMjvZhxVAhT9WGEqHzkiutn+ADP6metUJoATyd7NdvP+306v/6u0rBS9WruZ S+89gMN5TbZYV/GDN1sZR5bBExw+slM3Li2YUdwjRRT1AEW7oPD4UbILtHTxNL349kPB 7wyxT1dyk3aWi8PQSW8kXbVM5EFXxEhqajm23hpb22pg7DQGIG6vRI/LTz6j1ZLJ1h67 qpUqY1XqGFai9pW8ejHfN9M054KM6hJ3StWHmf8929f6FUcAU47BJHx2jYwSrz/PuCpW oZ6Gktvn5j8OwieSq2KTzt77JmA1NV/7BUWLgs+PTCjvf/dDC3SVUH9p5Ve4LHKtaNKP oT0g== 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=Hb40/6L9GfEPWO5ssIkHhW48kbHXwE/E0EAsWVoigAM=; fh=jmrLlo6JMkucqTy5i7AVGDXN/rpTWzLzUeh0Bn1IeP0=; b=c7YjCBcoh51HceoE0i/mrv37K9yXNZWC6ZMYdRdjSn7P5S7kyugqd+fxViDX7yJAJQ klW3aX41O5nJ9ZB/ObH4vdmuE8GoksIvk5Dsg5aEh2lHcaq200lnA+l896DCOn+JIsts l24iwcIy4xKAWPlCPOxdZ7uRjP4Bi6ddZVEi2vLYfbg1MR5zndA7nPQcK4KFo/dbyzdc ABcTNCB1J0rgIxcx9isrRNdFxbOW8d3slWahlUWFxOYyrchOXqu19JQtioCKTMPIOrlt aVqbol5jI4iiLqO4AeWoCEIeD7t6ZaLNC+IzI0cZjX1QCYHG/CNYHJY+tm0YU/Dt99xH +gzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=H9rovLqB; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id y7-20020a636407000000b00563a0bacbb4si3052734pgb.694.2023.09.21.22.35.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 22:35:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=H9rovLqB; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id A9C1D8260AE3; Thu, 21 Sep 2023 12:37:30 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229884AbjIUTha (ORCPT + 56 others); Thu, 21 Sep 2023 15:37:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229700AbjIUThL (ORCPT ); Thu, 21 Sep 2023 15:37:11 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 539817B96B for ; Thu, 21 Sep 2023 10:50:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695318643; x=1726854643; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=tVoQrmfnhoSK2Yw1Szds+cnZ/mg7294DZlsD59Knyps=; b=H9rovLqBwsWggD3g0gt0pBOWThGJTFAK6j9CiqCOw5REaRwd3e2Kg8EX rGQuV04DgLX45NK17MBxycvu6iiTyyjMpAX7X18rbxTQkx0ez3Yw8e/Ux 5CJVF17+xk26OVoE36p0dHauO+ZDnA6oDzzki3sQueNHtXXLBhMp8I+ej ne09qEP/LbyMSCsqzQozGg5i3TpE85gfc+lxXWL1UnbMXwK20MrwuP6I1 nzcI13DHPaovtZRueV9SXrJTDTp009k75lZuzh2hoHhPzrZt74U9gHS0O 2X3+Zx0d1PijJ42cGAUsUzj/nrY16KmfBVnUorLrshhLqPRuL7rLmH4wz g==; X-IronPort-AV: E=McAfee;i="6600,9927,10839"; a="384305491" X-IronPort-AV: E=Sophos;i="6.03,165,1694761200"; d="scan'208";a="384305491" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Sep 2023 01:59:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10839"; a="740545685" X-IronPort-AV: E=Sophos;i="6.03,165,1694761200"; d="scan'208";a="740545685" Received: from rchuwer-mobl.ger.corp.intel.com (HELO ggreenma-mobl2.lan) ([10.214.229.163]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Sep 2023 01:59:09 -0700 From: gregory.greenman@intel.com To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Mukesh Sisodiya , Gregory Greenman Subject: [PATCH 12/12] wifi: iwlwifi: add mapping of a periphery register crf for WH RF Date: Thu, 21 Sep 2023 11:58:10 +0300 Message-Id: <20230921110727.ccfc4868111f.I94dd75fc82443facf571f2fe8e23c50e9053a35a@changeid> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230921085810.693048-1-gregory.greenman@intel.com> References: <20230921085810.693048-1-gregory.greenman@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 21 Sep 2023 12:37:30 -0700 (PDT) From: Mukesh Sisodiya Add the support for prph register RF details and map it to get the RF ID of NIC. Signed-off-by: Mukesh Sisodiya Signed-off-by: Gregory Greenman --- drivers/net/wireless/intel/iwlwifi/iwl-prph.h | 1 + drivers/net/wireless/intel/iwlwifi/pcie/drv.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/drivers/net/wireless/intel/iwlwifi/iwl-prph.h b/drivers/net/wireless/intel/iwlwifi/iwl-prph.h index 6dd381ff0f9e..6fad5b65a836 100644 --- a/drivers/net/wireless/intel/iwlwifi/iwl-prph.h +++ b/drivers/net/wireless/intel/iwlwifi/iwl-prph.h @@ -452,6 +452,7 @@ enum { #define REG_CRF_ID_TYPE_FM 0x910 #define REG_CRF_ID_TYPE_FMI 0x930 #define REG_CRF_ID_TYPE_FMR 0x900 +#define REG_CRF_ID_TYPE_WHP 0xA10 #define HPM_DEBUG 0xA03440 #define PERSISTENCE_BIT BIT(12) diff --git a/drivers/net/wireless/intel/iwlwifi/pcie/drv.c b/drivers/net/wireless/intel/iwlwifi/pcie/drv.c index bc83d2ba55c6..e8687683ff29 100644 --- a/drivers/net/wireless/intel/iwlwifi/pcie/drv.c +++ b/drivers/net/wireless/intel/iwlwifi/pcie/drv.c @@ -1196,6 +1196,9 @@ static int map_crf_id(struct iwl_trans *iwl_trans) case REG_CRF_ID_TYPE_FMR: iwl_trans->hw_rf_id = (IWL_CFG_RF_TYPE_FM << 12); break; + case REG_CRF_ID_TYPE_WHP: + iwl_trans->hw_rf_id = (IWL_CFG_RF_TYPE_WH << 12); + break; default: ret = -EIO; IWL_ERR(iwl_trans, -- 2.38.1