diff options
Diffstat (limited to 'drivers/net/ethernet/intel/e1000e/80003es2lan.c')
-rw-r--r-- | drivers/net/ethernet/intel/e1000e/80003es2lan.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/drivers/net/ethernet/intel/e1000e/80003es2lan.c b/drivers/net/ethernet/intel/e1000e/80003es2lan.c index 1f8f8524d863..bac9dda31b6c 100644 --- a/drivers/net/ethernet/intel/e1000e/80003es2lan.c +++ b/drivers/net/ethernet/intel/e1000e/80003es2lan.c | |||
@@ -820,7 +820,7 @@ static s32 e1000_init_hw_80003es2lan(struct e1000_hw *hw) | |||
820 | e1000_initialize_hw_bits_80003es2lan(hw); | 820 | e1000_initialize_hw_bits_80003es2lan(hw); |
821 | 821 | ||
822 | /* Initialize identification LED */ | 822 | /* Initialize identification LED */ |
823 | ret_val = e1000e_id_led_init(hw); | 823 | ret_val = mac->ops.id_led_init(hw); |
824 | if (ret_val) | 824 | if (ret_val) |
825 | e_dbg("Error initializing identification LED\n"); | 825 | e_dbg("Error initializing identification LED\n"); |
826 | /* This is not fatal and we should not stop init due to this */ | 826 | /* This is not fatal and we should not stop init due to this */ |
@@ -838,7 +838,7 @@ static s32 e1000_init_hw_80003es2lan(struct e1000_hw *hw) | |||
838 | E1000_WRITE_REG_ARRAY(hw, E1000_MTA, i, 0); | 838 | E1000_WRITE_REG_ARRAY(hw, E1000_MTA, i, 0); |
839 | 839 | ||
840 | /* Setup link and flow control */ | 840 | /* Setup link and flow control */ |
841 | ret_val = e1000e_setup_link(hw); | 841 | ret_val = mac->ops.setup_link(hw); |
842 | 842 | ||
843 | /* Disable IBIST slave mode (far-end loopback) */ | 843 | /* Disable IBIST slave mode (far-end loopback) */ |
844 | e1000_read_kmrn_reg_80003es2lan(hw, E1000_KMRNCTRLSTA_INBAND_PARAM, | 844 | e1000_read_kmrn_reg_80003es2lan(hw, E1000_KMRNCTRLSTA_INBAND_PARAM, |
@@ -1056,7 +1056,7 @@ static s32 e1000_copper_link_setup_gg82563_80003es2lan(struct e1000_hw *hw) | |||
1056 | * firmware will have already initialized them. We only initialize | 1056 | * firmware will have already initialized them. We only initialize |
1057 | * them if the HW is not in IAMT mode. | 1057 | * them if the HW is not in IAMT mode. |
1058 | */ | 1058 | */ |
1059 | if (!e1000e_check_mng_mode(hw)) { | 1059 | if (!hw->mac.ops.check_mng_mode(hw)) { |
1060 | /* Enable Electrical Idle on the PHY */ | 1060 | /* Enable Electrical Idle on the PHY */ |
1061 | data |= GG82563_PMCR_ENABLE_ELECTRICAL_IDLE; | 1061 | data |= GG82563_PMCR_ENABLE_ELECTRICAL_IDLE; |
1062 | ret_val = e1e_wphy(hw, GG82563_PHY_PWR_MGMT_CTRL, data); | 1062 | ret_val = e1e_wphy(hw, GG82563_PHY_PWR_MGMT_CTRL, data); |
@@ -1413,7 +1413,7 @@ static void e1000_clear_hw_cntrs_80003es2lan(struct e1000_hw *hw) | |||
1413 | 1413 | ||
1414 | static const struct e1000_mac_operations es2_mac_ops = { | 1414 | static const struct e1000_mac_operations es2_mac_ops = { |
1415 | .read_mac_addr = e1000_read_mac_addr_80003es2lan, | 1415 | .read_mac_addr = e1000_read_mac_addr_80003es2lan, |
1416 | .id_led_init = e1000e_id_led_init, | 1416 | .id_led_init = e1000e_id_led_init_generic, |
1417 | .blink_led = e1000e_blink_led_generic, | 1417 | .blink_led = e1000e_blink_led_generic, |
1418 | .check_mng_mode = e1000e_check_mng_mode_generic, | 1418 | .check_mng_mode = e1000e_check_mng_mode_generic, |
1419 | /* check_for_link dependent on media type */ | 1419 | /* check_for_link dependent on media type */ |
@@ -1429,9 +1429,10 @@ static const struct e1000_mac_operations es2_mac_ops = { | |||
1429 | .clear_vfta = e1000_clear_vfta_generic, | 1429 | .clear_vfta = e1000_clear_vfta_generic, |
1430 | .reset_hw = e1000_reset_hw_80003es2lan, | 1430 | .reset_hw = e1000_reset_hw_80003es2lan, |
1431 | .init_hw = e1000_init_hw_80003es2lan, | 1431 | .init_hw = e1000_init_hw_80003es2lan, |
1432 | .setup_link = e1000e_setup_link, | 1432 | .setup_link = e1000e_setup_link_generic, |
1433 | /* setup_physical_interface dependent on media type */ | 1433 | /* setup_physical_interface dependent on media type */ |
1434 | .setup_led = e1000e_setup_led_generic, | 1434 | .setup_led = e1000e_setup_led_generic, |
1435 | .config_collision_dist = e1000e_config_collision_dist_generic, | ||
1435 | }; | 1436 | }; |
1436 | 1437 | ||
1437 | static const struct e1000_phy_operations es2_phy_ops = { | 1438 | static const struct e1000_phy_operations es2_phy_ops = { |
@@ -1456,6 +1457,7 @@ static const struct e1000_nvm_operations es2_nvm_ops = { | |||
1456 | .acquire = e1000_acquire_nvm_80003es2lan, | 1457 | .acquire = e1000_acquire_nvm_80003es2lan, |
1457 | .read = e1000e_read_nvm_eerd, | 1458 | .read = e1000e_read_nvm_eerd, |
1458 | .release = e1000_release_nvm_80003es2lan, | 1459 | .release = e1000_release_nvm_80003es2lan, |
1460 | .reload = e1000e_reload_nvm_generic, | ||
1459 | .update = e1000e_update_nvm_checksum_generic, | 1461 | .update = e1000e_update_nvm_checksum_generic, |
1460 | .valid_led_default = e1000e_valid_led_default, | 1462 | .valid_led_default = e1000e_valid_led_default, |
1461 | .validate = e1000e_validate_nvm_checksum_generic, | 1463 | .validate = e1000e_validate_nvm_checksum_generic, |