e1000e: Add support for Alder Lake
Subsystems (2)
PATCH 1/1 e1000e: Add support for Alder Lake
Add devices ID's for the next LOM generations that will be available on the next Intel Client platform (Alder Lake) This patch provides the initial support for these devices
--- drivers/net/ethernet/intel/e1000e/ethtool.c | 2 ++ drivers/net/ethernet/intel/e1000e/hw.h | 5 +++++ drivers/net/ethernet/intel/e1000e/ich8lan.c | 7 +++++++ drivers/net/ethernet/intel/e1000e/netdev.c | 10 ++++++++-- drivers/net/ethernet/intel/e1000e/ptp.c | 1 + 5 files changed, 23 insertions(+), 2 deletions(-)
drivers/net/ethernet/intel/e1000e/ethtool.c +2 -0
@@ -897,6 +897,7 @@ static int e1000_reg_test(struct e1000_adapter *adapter, u64 *data)case e1000_pch_cnp:/* fall through */ case e1000_pch_tgp: +case e1000_pch_adp: mask |=BIT (18 );break ;default :
@@ -1561,6 +1562,7 @@ static void e1000_loopback_cleanup(struct e1000_adapter *adapter)case e1000_pch_spt:case e1000_pch_cnp:case e1000_pch_tgp: +case e1000_pch_adp: fext_nvm11 =er32 (FEXTNVM11 ); fext_nvm11 &= ~E1000_FEXTNVM11_DISABLE_MULR_FIX ;ew32 (FEXTNVM11 , fext_nvm11);
drivers/net/ethernet/intel/e1000e/hw.h +5 -0
@@ -97,6 +97,10 @@ struct e1000_hw;#define E1000_DEV_ID_PCH_TGP_I219_LM14 0x15F9#define E1000_DEV_ID_PCH_TGP_I219_V14 0x15FA#define E1000_DEV_ID_PCH_TGP_I219_LM15 0x15F4 +#define E1000_DEV_ID_PCH_ADP_1219_LM16 0x1A1E +#define E1000_DEV_ID_PCH_ADP_1219_V16 0x1A1F +#define E1000_DEV_ID_PCH_ADP_1219_LM17 0x1A1C +#define E1000_DEV_ID_PCH_ADP_1219_V17 0x1A1D#define E1000_REVISION_4 4
@@ -121,6 +125,7 @@ enum e1000_mac_type { e1000_pch_spt, e1000_pch_cnp, e1000_pch_tgp, + e1000_pch_adp, }; enum e1000_media_type {
drivers/net/ethernet/intel/e1000e/ich8lan.c +7 -0
@@ -317,6 +317,7 @@ static s32 e1000_init_phy_workarounds_pchlan(struct e1000_hw *hw)case e1000_pch_spt:case e1000_pch_cnp:case e1000_pch_tgp: +case e1000_pch_adp:if (e1000_phy_is_accessible_pchlan (hw))break ;
@@ -460,6 +461,7 @@ static s32 e1000_init_phy_params_pchlan(struct e1000_hw *hw)case e1000_pch_spt:case e1000_pch_cnp:case e1000_pch_tgp: +case e1000_pch_adp:/* In case the PHY needs to be in mdio slow mode, * set slow mode and try to get the PHY id again. */
@@ -703,6 +705,7 @@ static s32 e1000_init_mac_params_ich8lan(struct e1000_hw *hw)case e1000_pch_spt:case e1000_pch_cnp:case e1000_pch_tgp: +case e1000_pch_adp:case e1000_pchlan:/* check management mode */ mac->ops.check_mng_mode = e1000_check_mng_mode_pchlan;
@@ -1642,6 +1645,7 @@ static s32 e1000_get_variants_ich8lan(struct e1000_adapter *adapter)case e1000_pch_spt:case e1000_pch_cnp:case e1000_pch_tgp: +case e1000_pch_adp: rc =e1000_init_phy_params_pchlan (hw);break ;default :
@@ -2095,6 +2099,7 @@ static s32 e1000_sw_lcd_config_ich8lan(struct e1000_hw *hw)case e1000_pch_spt:case e1000_pch_cnp:case e1000_pch_tgp: +case e1000_pch_adp: sw_cfg_mask =E1000_FEXTNVM_SW_CONFIG_ICH8M ;break ;default :
@@ -3133,6 +3138,7 @@ static s32 e1000_valid_nvm_bank_detect_ich8lan(struct e1000_hw *hw, u32 *bank)case e1000_pch_spt:case e1000_pch_cnp:case e1000_pch_tgp: +case e1000_pch_adp: bank1_offset = nvm->flash_bank_size; act_offset =E1000_ICH_NVM_SIG_WORD ;
@@ -4077,6 +4083,7 @@ static s32 e1000_validate_nvm_checksum_ich8lan(struct e1000_hw *hw)case e1000_pch_spt:case e1000_pch_cnp:case e1000_pch_tgp: +case e1000_pch_adp: word =NVM_COMPAT ; valid_csum_mask =NVM_COMPAT_VALID_CSUM ;break ;
drivers/net/ethernet/intel/e1000e/netdev.c +8 -2
@@ -3539,6 +3539,7 @@ s32 e1000e_get_base_timinca(struct e1000_adapter *adapter, u32 *timinca)break ;case e1000_pch_cnp:case e1000_pch_tgp: +case e1000_pch_adp:if (er32 (TSYNCRXCTL ) &E1000_TSYNCRXCTL_SYSCFI ) {/* Stable 24MHz frequency */ incperiod =INCPERIOD_24MHZ ;
@@ -4052,8 +4053,9 @@ void e1000e_reset(struct e1000_adapter *adapter)case e1000_pch_cnp:/* fall-through */ case e1000_pch_tgp: - fc->refresh_time =0xFFFF ; - fc->pause_time =0xFFFF ; +case e1000_pch_adp: + + fc->refresh_time =0x0400 ;if (adapter->netdev->mtu <=ETH_DATA_LEN ) { fc->high_water =0x05C20 ;
@@ -7764,6 +7766,10 @@ static const struct pci_device_id e1000_pci_tbl[] = { { PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_TGP_I219_LM14), board_pch_cnp }, { PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_TGP_I219_V14), board_pch_cnp }, { PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_TGP_I219_LM15), board_pch_cnp }, + { PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_ADP_1219_LM16), board_pch_cnp }, + { PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_ADP_1219_V16), board_pch_cnp }, + { PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_ADP_1219_LM17), board_pch_cnp }, + { PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_ADP_1219_V17), board_pch_cnp }, { 0, 0, 0, 0, 0, 0, 0 } /* terminate list */ };
drivers/net/ethernet/intel/e1000e/ptp.c +1 -0
@@ -297,6 +297,7 @@ void e1000e_ptp_init(struct e1000_adapter *adapter)case e1000_pch_cnp:/* fall-through */ case e1000_pch_tgp: +case e1000_pch_adp:if ((hw->mac.type < e1000_pch_lpt) || (er32 (TSYNCRXCTL ) &E1000_TSYNCRXCTL_SYSCFI )) { adapter->ptp_clock_info.max_adj =24000000 -1 ;
Signature · 1 line
2.11.0
PATCH 1/1 e1000e: Add support for Alder Lake
Dear Sasha,
Thank you for the patch.
Quoted 3 lines · Sasha Neftin
Add devices ID's for the next LOM generations that will be available on the next Intel Client platform (Alder Lake) This patch provides the initial support for these devices
Could you please add a datasheet name/version to the commit message too?
Quoted 14 lines
Signed-off-by Sasha Neftin <[email protected]>--- drivers/net/ethernet/intel/e1000e/ethtool.c | 2 ++ drivers/net/ethernet/intel/e1000e/hw.h | 5 +++++ drivers/net/ethernet/intel/e1000e/ich8lan.c | 7 +++++++ drivers/net/ethernet/intel/e1000e/netdev.c | 10 ++++++++-- drivers/net/ethernet/intel/e1000e/ptp.c | 1 + 5 files changed, 23 insertions(+), 2 deletions(-)drivers/net/ethernet/intel/e1000e/ethtool.c +0
-0
drivers/net/ethernet/intel/e1000e/ethtool.c static int e1000_reg_test(struct e1000_adapter *adapter, u64 *data) · line 898
Quoted 2 lines
drivers/net/ethernet/intel/e1000e/ethtool.c +0
-0@@ -897,6 +897,7 @@ static int e1000_reg_test(struct e1000_adapter *adapter, u64 *data)case e1000_pch_cnp:/* fall through */
Unrelated, but this fall through does not seem to be needed?
Quoted 109 lines
drivers/net/ethernet/intel/e1000e/ethtool.c +2
-0case e1000_pch_tgp: +case e1000_pch_adp: mask |=BIT (18 );break ;default :@@ -1561,6 +1562,7 @@ static void e1000_loopback_cleanup(struct e1000_adapter *adapter)case e1000_pch_spt:case e1000_pch_cnp:case e1000_pch_tgp: +case e1000_pch_adp: fext_nvm11 =er32 (FEXTNVM11 ); fext_nvm11 &= ~E1000_FEXTNVM11_DISABLE_MULR_FIX ;ew32 (FEXTNVM11 , fext_nvm11);drivers/net/ethernet/intel/e1000e/hw.h +5
-0@@ -97,6 +97,10 @@ struct e1000_hw;#define E1000_DEV_ID_PCH_TGP_I219_LM14 0x15F9#define E1000_DEV_ID_PCH_TGP_I219_V14 0x15FA#define E1000_DEV_ID_PCH_TGP_I219_LM15 0x15F4 +#define E1000_DEV_ID_PCH_ADP_1219_LM16 0x1A1E +#define E1000_DEV_ID_PCH_ADP_1219_V16 0x1A1F +#define E1000_DEV_ID_PCH_ADP_1219_LM17 0x1A1C +#define E1000_DEV_ID_PCH_ADP_1219_V17 0x1A1D#define E1000_REVISION_4 4@@ -121,6 +125,7 @@ enum e1000_mac_type { e1000_pch_spt, e1000_pch_cnp, e1000_pch_tgp, + e1000_pch_adp, }; enum e1000_media_type {drivers/net/ethernet/intel/e1000e/ich8lan.c +7
-0@@ -317,6 +317,7 @@ static s32 e1000_init_phy_workarounds_pchlan(struct e1000_hw *hw)case e1000_pch_spt:case e1000_pch_cnp:case e1000_pch_tgp: +case e1000_pch_adp:if (e1000_phy_is_accessible_pchlan (hw))break ;@@ -460,6 +461,7 @@ static s32 e1000_init_phy_params_pchlan(struct e1000_hw *hw)case e1000_pch_spt:case e1000_pch_cnp:case e1000_pch_tgp: +case e1000_pch_adp:/* In case the PHY needs to be in mdio slow mode, * set slow mode and try to get the PHY id again. */ @@ -703,6 +705,7 @@ static s32 e1000_init_mac_params_ich8lan(struct e1000_hw *hw)case e1000_pch_spt:case e1000_pch_cnp:case e1000_pch_tgp: +case e1000_pch_adp:case e1000_pchlan:/* check management mode */ mac->ops.check_mng_mode = e1000_check_mng_mode_pchlan;@@ -1642,6 +1645,7 @@ static s32 e1000_get_variants_ich8lan(struct e1000_adapter *adapter)case e1000_pch_spt:case e1000_pch_cnp:case e1000_pch_tgp: +case e1000_pch_adp: rc =e1000_init_phy_params_pchlan (hw);break ;default :@@ -2095,6 +2099,7 @@ static s32 e1000_sw_lcd_config_ich8lan(struct e1000_hw *hw)case e1000_pch_spt:case e1000_pch_cnp:case e1000_pch_tgp: +case e1000_pch_adp: sw_cfg_mask =E1000_FEXTNVM_SW_CONFIG_ICH8M ;break ;default :@@ -3133,6 +3138,7 @@ static s32 e1000_valid_nvm_bank_detect_ich8lan(struct e1000_hw *hw, u32 *bank)case e1000_pch_spt:case e1000_pch_cnp:case e1000_pch_tgp: +case e1000_pch_adp: bank1_offset = nvm->flash_bank_size; act_offset =E1000_ICH_NVM_SIG_WORD ;@@ -4077,6 +4083,7 @@ static s32 e1000_validate_nvm_checksum_ich8lan(struct e1000_hw *hw)case e1000_pch_spt:case e1000_pch_cnp:case e1000_pch_tgp: +case e1000_pch_adp: word =NVM_COMPAT ; valid_csum_mask =NVM_COMPAT_VALID_CSUM ;break ;drivers/net/ethernet/intel/e1000e/netdev.c +1
-0@@ -3539,6 +3539,7 @@ s32 e1000e_get_base_timinca(struct e1000_adapter *adapter, u32 *timinca)break ;case e1000_pch_cnp:case e1000_pch_tgp: +case e1000_pch_adp:if (er32 (TSYNCRXCTL ) &E1000_TSYNCRXCTL_SYSCFI ) {/* Stable 24MHz frequency */ incperiod =INCPERIOD_24MHZ ;
drivers/net/ethernet/intel/e1000e/netdev.c void e1000e_reset(struct e1000_adapter *adapter) · line 4054
Quoted 2 lines
drivers/net/ethernet/intel/e1000e/netdev.c +0
-0@@ -4052,8 +4053,9 @@ void e1000e_reset(struct e1000_adapter *adapter)case e1000_pch_cnp:/* fall-through */
Also not needed?
drivers/net/ethernet/intel/e1000e/netdev.c void e1000e_reset(struct e1000_adapter *adapter) · line 4058
Quoted 6 lines
drivers/net/ethernet/intel/e1000e/netdev.c +3
-2case e1000_pch_tgp: - fc->refresh_time =0xFFFF ; - fc->pause_time =0xFFFF ; +case e1000_pch_adp: + + fc->refresh_time =0x0400 ;
This looks like a functional change for Tiger Lake and above too. Please separate this out into a commit before, detailing the reasoning in the commit message.
Quoted 19 lines
drivers/net/ethernet/intel/e1000e/netdev.c +4
-0if (adapter->netdev->mtu <=ETH_DATA_LEN ) { fc->high_water =0x05C20 ;@@ -7764,6 +7766,10 @@ static const struct pci_device_id e1000_pci_tbl[] = { { PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_TGP_I219_LM14), board_pch_cnp }, { PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_TGP_I219_V14), board_pch_cnp }, { PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_TGP_I219_LM15), board_pch_cnp }, + { PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_ADP_1219_LM16), board_pch_cnp }, + { PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_ADP_1219_V16), board_pch_cnp }, + { PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_ADP_1219_LM17), board_pch_cnp }, + { PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_ADP_1219_V17), board_pch_cnp }, { 0, 0, 0, 0, 0, 0, 0 } /* terminate list */ };drivers/net/ethernet/intel/e1000e/ptp.c +0
-0
drivers/net/ethernet/intel/e1000e/ptp.c void e1000e_ptp_init(struct e1000_adapter *adapter) · line 298
Quoted 2 lines
drivers/net/ethernet/intel/e1000e/ptp.c +0
-0@@ -297,6 +297,7 @@ void e1000e_ptp_init(struct e1000_adapter *adapter)case e1000_pch_cnp:/* fall-through */
Not needed? Could you please add a clean-up before this commit?
drivers/net/ethernet/intel/e1000e/ptp.c void e1000e_ptp_init(struct e1000_adapter *adapter) · line 303
Quoted 5 lines
drivers/net/ethernet/intel/e1000e/ptp.c +1
-0case e1000_pch_tgp: +case e1000_pch_adp:if ((hw->mac.type < e1000_pch_lpt) || (er32 (TSYNCRXCTL ) &E1000_TSYNCRXCTL_SYSCFI )) { adapter->ptp_clock_info.max_adj =24000000 -1 ;
With all these expanded switch statements, it might be a good idea to refactor the driver, to have some kind of families (I219(?)), which is used in these cases.
Kind regards,
Paul
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5174 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.osuosl.org/pipermail/intel-wired-lan/attachments/20200116/9e86db5c/attachment.p7s>
Neftin
PATCH 1/1 e1000e: Add support for Alder Lake
Quoted 5 lines · Paul Menzel
Dear Sasha,
Thank you for the patch.
Quoted 7 lines
Quoted 3 lines · Sasha Neftin
Add devices ID's for the next LOM generations that will be available on the next Intel Client platform (Alder Lake) This patch provides the initial support for these devices
Could you please add a datasheet name/version to the commit message too?
This will be published on Intel site.
Quoted 9 lines
Quoted 9 lines
Quoted 1 line
Signed-off-by Sasha Neftin <[email protected]>--- drivers/net/ethernet/intel/e1000e/ethtool.c | 2 ++ drivers/net/ethernet/intel/e1000e/hw.h | 5 +++++ drivers/net/ethernet/intel/e1000e/ich8lan.c | 7 +++++++ drivers/net/ethernet/intel/e1000e/netdev.c | 10 ++++++++-- drivers/net/ethernet/intel/e1000e/ptp.c | 1 + 5 files changed, 23 insertions(+), 2 deletions(-)
Quoted 9 lines
drivers/net/ethernet/intel/e1000e/ethtool.c static int e1000_reg_test(struct e1000_adapter *adapter, u64 *data) · line 898
Quoted 7 lines
drivers/net/ethernet/intel/e1000e/ethtool.c +0
-0@@ -897,6 +897,7 @@ static int e1000_reg_test(struct e1000_adapter *adapter, u64 *data)case e1000_pch_cnp:/* fall through */ Unrelated, but this fall through does not seem to be needed?
Agree. Will remove it.
Quoted 106 lines
Quoted 106 lines
drivers/net/ethernet/intel/e1000e/ethtool.c +2
-0case e1000_pch_tgp: +case e1000_pch_adp: mask |=BIT (18 );break ;default :@@ -1561,6 +1562,7 @@ static void e1000_loopback_cleanup(struct e1000_adapter *adapter)case e1000_pch_spt:case e1000_pch_cnp:case e1000_pch_tgp: +case e1000_pch_adp: fext_nvm11 =er32 (FEXTNVM11 ); fext_nvm11 &= ~E1000_FEXTNVM11_DISABLE_MULR_FIX ;ew32 (FEXTNVM11 , fext_nvm11);drivers/net/ethernet/intel/e1000e/hw.h +5
-0@@ -97,6 +97,10 @@ struct e1000_hw;#define E1000_DEV_ID_PCH_TGP_I219_LM14 0x15F9#define E1000_DEV_ID_PCH_TGP_I219_V14 0x15FA#define E1000_DEV_ID_PCH_TGP_I219_LM15 0x15F4 +#define E1000_DEV_ID_PCH_ADP_1219_LM16 0x1A1E +#define E1000_DEV_ID_PCH_ADP_1219_V16 0x1A1F +#define E1000_DEV_ID_PCH_ADP_1219_LM17 0x1A1C +#define E1000_DEV_ID_PCH_ADP_1219_V17 0x1A1D#define E1000_REVISION_4 4@@ -121,6 +125,7 @@ enum e1000_mac_type { e1000_pch_spt, e1000_pch_cnp, e1000_pch_tgp, + e1000_pch_adp, }; enum e1000_media_type {drivers/net/ethernet/intel/e1000e/ich8lan.c +7
-0@@ -317,6 +317,7 @@ static s32 e1000_init_phy_workarounds_pchlan(struct e1000_hw *hw)case e1000_pch_spt:case e1000_pch_cnp:case e1000_pch_tgp: +case e1000_pch_adp:if (e1000_phy_is_accessible_pchlan (hw))break ;@@ -460,6 +461,7 @@ static s32 e1000_init_phy_params_pchlan(struct e1000_hw *hw)case e1000_pch_spt:case e1000_pch_cnp:case e1000_pch_tgp: +case e1000_pch_adp:/* In case the PHY needs to be in mdio slow mode, * set slow mode and try to get the PHY id again. */ @@ -703,6 +705,7 @@ static s32 e1000_init_mac_params_ich8lan(struct e1000_hw *hw)case e1000_pch_spt:case e1000_pch_cnp:case e1000_pch_tgp: +case e1000_pch_adp:case e1000_pchlan:/* check management mode */ mac->ops.check_mng_mode = e1000_check_mng_mode_pchlan;@@ -1642,6 +1645,7 @@ static s32 e1000_get_variants_ich8lan(struct e1000_adapter *adapter)case e1000_pch_spt:case e1000_pch_cnp:case e1000_pch_tgp: +case e1000_pch_adp: rc =e1000_init_phy_params_pchlan (hw);break ;default :@@ -2095,6 +2099,7 @@ static s32 e1000_sw_lcd_config_ich8lan(struct e1000_hw *hw)case e1000_pch_spt:case e1000_pch_cnp:case e1000_pch_tgp: +case e1000_pch_adp: sw_cfg_mask =E1000_FEXTNVM_SW_CONFIG_ICH8M ;break ;default :@@ -3133,6 +3138,7 @@ static s32 e1000_valid_nvm_bank_detect_ich8lan(struct e1000_hw *hw, u32 *bank)case e1000_pch_spt:case e1000_pch_cnp:case e1000_pch_tgp: +case e1000_pch_adp: bank1_offset = nvm->flash_bank_size; act_offset =E1000_ICH_NVM_SIG_WORD ;@@ -4077,6 +4083,7 @@ static s32 e1000_validate_nvm_checksum_ich8lan(struct e1000_hw *hw)case e1000_pch_spt:case e1000_pch_cnp:case e1000_pch_tgp: +case e1000_pch_adp: word =NVM_COMPAT ; valid_csum_mask =NVM_COMPAT_VALID_CSUM ;break ;drivers/net/ethernet/intel/e1000e/netdev.c +1
-0@@ -3539,6 +3539,7 @@ s32 e1000e_get_base_timinca(struct e1000_adapter *adapter, u32 *timinca)break ;case e1000_pch_cnp:case e1000_pch_tgp: +case e1000_pch_adp:
Quoted 9 lines
drivers/net/ethernet/intel/e1000e/netdev.c void e1000e_reset(struct e1000_adapter *adapter) · line 4054
Quoted 6 lines
drivers/net/ethernet/intel/e1000e/netdev.c +0
-0if (er32 (TSYNCRXCTL ) &E1000_TSYNCRXCTL_SYSCFI ) {/* Stable 24MHz frequency */ incperiod =INCPERIOD_24MHZ ;@@ -4052,8 +4053,9 @@ void e1000e_reset(struct e1000_adapter *adapter)case e1000_pch_cnp:/* fall-through */ Also not needed?
Agree. Not related, but I will remove.
Quoted 10 lines
drivers/net/ethernet/intel/e1000e/netdev.c void e1000e_reset(struct e1000_adapter *adapter) · line 4058
Quoted 6 lines
drivers/net/ethernet/intel/e1000e/netdev.c +3
-2case e1000_pch_tgp: - fc->refresh_time =0xFFFF ; - fc->pause_time =0xFFFF ; +case e1000_pch_adp: + + fc->refresh_time =0x0400 ;This looks like a functional change for Tiger Lake and above too. Please separate this out into a commit before, detailing the reasoning in the commit message.
Good catch - thanks Paul. This is my mistake and I will revert the original settings for a flow control. There is no changes.
Quoted 13 lines
Quoted 13 lines
drivers/net/ethernet/intel/e1000e/netdev.c +4
-0if (adapter->netdev->mtu <=ETH_DATA_LEN ) { fc->high_water =0x05C20 ;@@ -7764,6 +7766,10 @@ static const struct pci_device_id e1000_pci_tbl[] = { { PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_TGP_I219_LM14), board_pch_cnp }, { PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_TGP_I219_V14), board_pch_cnp }, { PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_TGP_I219_LM15), board_pch_cnp }, + { PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_ADP_1219_LM16), board_pch_cnp }, + { PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_ADP_1219_V16), board_pch_cnp }, + { PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_ADP_1219_LM17), board_pch_cnp }, + { PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_ADP_1219_V17), board_pch_cnp },
Quoted 12 lines
drivers/net/ethernet/intel/e1000e/ptp.c void e1000e_ptp_init(struct e1000_adapter *adapter) · line 298
Quoted 9 lines
drivers/net/ethernet/intel/e1000e/netdev.c +0
-0{ 0, 0, 0, 0, 0, 0, 0 } /* terminate list */ };drivers/net/ethernet/intel/e1000e/ptp.c +0
-0@@ -297,6 +297,7 @@ void e1000e_ptp_init(struct e1000_adapter *adapter)case e1000_pch_cnp:/* fall-through */ Not needed? Could you please add a clean-up before this commit?
Agree. Not related, but I will remove.
Quoted 9 lines
drivers/net/ethernet/intel/e1000e/ptp.c void e1000e_ptp_init(struct e1000_adapter *adapter) · line 303
Quoted 5 lines
drivers/net/ethernet/intel/e1000e/ptp.c +1
-0case e1000_pch_tgp: +case e1000_pch_adp:if ((hw->mac.type < e1000_pch_lpt) || (er32 (TSYNCRXCTL ) &E1000_TSYNCRXCTL_SYSCFI )) { adapter->ptp_clock_info.max_adj =24000000 -1 ;With all these expanded switch statements, it might be a good idea to refactor the driver, to have some kind of families (I219(?)), which is used in these cases.
I will consider about this, but this is will a different patch.
Quoted 6 lines
Kind regards,
Paul
Thanks Paul for this review - I will address your comments in v2.