]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
e1000e: introduce new board type for Panther Lake PCH
authorVitaly Lifshits <vitaly.lifshits@intel.com>
Tue, 6 Jan 2026 14:14:19 +0000 (16:14 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Wed, 25 Feb 2026 19:43:57 +0000 (11:43 -0800)
Add new board type for Panther Lake devices for separating device-specific
features and flows.
Additionally, remove the deprecated device IDs 0x57B5 and 0x57B6, which
are not used by any existing devices.

Signed-off-by: Vitaly Lifshits <vitaly.lifshits@intel.com>
Tested-by: Avigail Dahan <avigailx.dahan@intel.com>
Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/e1000e/e1000.h
drivers/net/ethernet/intel/e1000e/hw.h
drivers/net/ethernet/intel/e1000e/ich8lan.c
drivers/net/ethernet/intel/e1000e/netdev.c

index aa08f397988e6272079bf6d09519bc0cc6104a24..63ebe00376f53f2f2ee314079f9a90e34ba9b3d7 100644 (file)
@@ -117,7 +117,8 @@ enum e1000_boards {
        board_pch_cnp,
        board_pch_tgp,
        board_pch_adp,
-       board_pch_mtp
+       board_pch_mtp,
+       board_pch_ptp
 };
 
 struct e1000_ps_page {
@@ -527,6 +528,7 @@ extern const struct e1000_info e1000_pch_cnp_info;
 extern const struct e1000_info e1000_pch_tgp_info;
 extern const struct e1000_info e1000_pch_adp_info;
 extern const struct e1000_info e1000_pch_mtp_info;
+extern const struct e1000_info e1000_pch_ptp_info;
 extern const struct e1000_info e1000_es2_info;
 
 void e1000e_ptp_init(struct e1000_adapter *adapter);
index fc8ed38aa0955426d07112e0a1231cd4062544b0..c7ac599e5a7a5782b8e90edd4be650a8667ade15 100644 (file)
@@ -118,8 +118,6 @@ struct e1000_hw;
 #define E1000_DEV_ID_PCH_ARL_I219_V24          0x57A1
 #define E1000_DEV_ID_PCH_PTP_I219_LM25         0x57B3
 #define E1000_DEV_ID_PCH_PTP_I219_V25          0x57B4
-#define E1000_DEV_ID_PCH_PTP_I219_LM26         0x57B5
-#define E1000_DEV_ID_PCH_PTP_I219_V26          0x57B6
 #define E1000_DEV_ID_PCH_PTP_I219_LM27         0x57B7
 #define E1000_DEV_ID_PCH_PTP_I219_V27          0x57B8
 #define E1000_DEV_ID_PCH_NVL_I219_LM29         0x57B9
index 0ff8688ac3b84c1e842a77d4f9d6ac96545dbb1c..23421a640097dd9fa66d03dbac9a3ea64d5ea538 100644 (file)
@@ -528,7 +528,7 @@ static s32 e1000_init_phy_params_pchlan(struct e1000_hw *hw)
 
        phy->id = e1000_phy_unknown;
 
-       if (hw->mac.type == e1000_pch_mtp) {
+       if (hw->mac.type == e1000_pch_mtp || hw->mac.type == e1000_pch_ptp) {
                phy->retry_count = 2;
                e1000e_enable_phy_retry(hw);
        }
@@ -6208,3 +6208,23 @@ const struct e1000_info e1000_pch_mtp_info = {
        .phy_ops                = &ich8_phy_ops,
        .nvm_ops                = &spt_nvm_ops,
 };
+
+const struct e1000_info e1000_pch_ptp_info = {
+       .mac                    = e1000_pch_ptp,
+       .flags                  = FLAG_IS_ICH
+                                 | FLAG_HAS_WOL
+                                 | FLAG_HAS_HW_TIMESTAMP
+                                 | FLAG_HAS_CTRLEXT_ON_LOAD
+                                 | FLAG_HAS_AMT
+                                 | FLAG_HAS_FLASH
+                                 | FLAG_HAS_JUMBO_FRAMES
+                                 | FLAG_APME_IN_WUC,
+       .flags2                 = FLAG2_HAS_PHY_STATS
+                                 | FLAG2_HAS_EEE,
+       .pba                    = 26,
+       .max_hw_frame_size      = 9022,
+       .get_variants           = e1000_get_variants_ich8lan,
+       .mac_ops                = &ich8_mac_ops,
+       .phy_ops                = &ich8_phy_ops,
+       .nvm_ops                = &spt_nvm_ops,
+};
index ddbe2f7d8112108a8ee6ccb2f57a38a8d2ff54dd..814698807f3d99849db441c726c51c26ad615178 100644 (file)
@@ -55,6 +55,7 @@ static const struct e1000_info *e1000_info_tbl[] = {
        [board_pch_tgp]         = &e1000_pch_tgp_info,
        [board_pch_adp]         = &e1000_pch_adp_info,
        [board_pch_mtp]         = &e1000_pch_mtp_info,
+       [board_pch_ptp]         = &e1000_pch_ptp_info,
 };
 
 struct e1000_reg_info {
@@ -7925,14 +7926,12 @@ static const struct pci_device_id e1000_pci_tbl[] = {
        { PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_LNP_I219_V21), board_pch_mtp },
        { PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_ARL_I219_LM24), board_pch_mtp },
        { PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_ARL_I219_V24), board_pch_mtp },
-       { PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_PTP_I219_LM25), board_pch_mtp },
-       { PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_PTP_I219_V25), board_pch_mtp },
-       { PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_PTP_I219_LM26), board_pch_mtp },
-       { PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_PTP_I219_V26), board_pch_mtp },
-       { PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_PTP_I219_LM27), board_pch_mtp },
-       { PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_PTP_I219_V27), board_pch_mtp },
-       { PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_NVL_I219_LM29), board_pch_mtp },
-       { PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_NVL_I219_V29), board_pch_mtp },
+       { PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_PTP_I219_LM25), board_pch_ptp },
+       { PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_PTP_I219_V25), board_pch_ptp },
+       { PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_PTP_I219_LM27), board_pch_ptp },
+       { PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_PTP_I219_V27), board_pch_ptp },
+       { PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_NVL_I219_LM29), board_pch_ptp },
+       { PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_NVL_I219_V29), board_pch_ptp },
 
        { 0, 0, 0, 0, 0, 0, 0 } /* terminate list */
 };