]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
wifi: iwlwifi: add RF name handling for PE chip type for debugfs
authorPagadala Yesu Anjaneyulu <pagadala.yesu.anjaneyulu@intel.com>
Mon, 11 May 2026 17:36:17 +0000 (20:36 +0300)
committerMiri Korenblit <miriam.rachel.korenblit@intel.com>
Tue, 26 May 2026 12:17:09 +0000 (15:17 +0300)
Implement RF name handling for PE chip type in debugfs,
including special case handling to show PETC when the
silicon is in Z step.

Signed-off-by: Pagadala Yesu Anjaneyulu <pagadala.yesu.anjaneyulu@intel.com>
Link: https://patch.msgid.link/20260511203428.f49fbbe61925.I7e001558e66eb2c6c5081be7c21defe6a81aa265@changeid
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
drivers/net/wireless/intel/iwlwifi/iwl-csr.h
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/trans-gen2.c

index f3fa37fee2e497afaa634f30e7529d47e73c77de..d2fa80a3dd040c3df49a312306ebfcfd2dd4c9e6 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
 /*
- * Copyright (C) 2005-2014, 2018-2025 Intel Corporation
+ * Copyright (C) 2005-2014, 2018-2026 Intel Corporation
  * Copyright (C) 2013-2014 Intel Mobile Communications GmbH
  * Copyright (C) 2016 Intel Deutschland GmbH
  */
@@ -366,6 +366,7 @@ enum {
 #define CSR_HW_RF_ID_TYPE_GF4          (0x0010E000)
 #define CSR_HW_RF_ID_TYPE_FM           (0x00112000)
 #define CSR_HW_RF_ID_TYPE_WP           (0x00113000)
+#define CSR_HW_RF_ID_TYPE_PE           (0x00114000)
 
 /* HW_RF CHIP STEP  */
 #define CSR_HW_RF_STEP(_val) (((_val) >> 8) & 0xF)
index a50e845cea4217c473741f7902bef40ef9070583..87e5f79ccb3c68131d60c5bf4abbd1a7d3c25d83 100644 (file)
@@ -1,7 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
 /*
  * Copyright (C) 2017 Intel Deutschland GmbH
- * Copyright (C) 2018-2025 Intel Corporation
+ * Copyright (C) 2018-2026 Intel Corporation
  */
 #include "iwl-trans.h"
 #include "iwl-prph.h"
@@ -327,6 +327,13 @@ static void iwl_pcie_get_rf_name(struct iwl_trans *trans)
                else
                        pos = scnprintf(buf, buflen, "WH");
                break;
+       case CSR_HW_RFID_TYPE(CSR_HW_RF_ID_TYPE_PE):
+               if (SILICON_Z_STEP ==
+                   CSR_HW_RFID_STEP(trans->info.hw_rf_id))
+                       pos = scnprintf(buf, buflen, "PETC");
+               else
+                       pos = scnprintf(buf, buflen, "PE");
+               break;
        default:
                return;
        }