diff options
Diffstat (limited to 'drivers/net/igb/e1000_82575.c')
-rw-r--r-- | drivers/net/igb/e1000_82575.c | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/drivers/net/igb/e1000_82575.c b/drivers/net/igb/e1000_82575.c index ed9e8c0333a..9a66e345729 100644 --- a/drivers/net/igb/e1000_82575.c +++ b/drivers/net/igb/e1000_82575.c | |||
@@ -179,13 +179,13 @@ static s32 igb_get_invariants_82575(struct e1000_hw *hw) | |||
179 | 179 | ||
180 | /* PHY function pointers */ | 180 | /* PHY function pointers */ |
181 | if (igb_sgmii_active_82575(hw)) { | 181 | if (igb_sgmii_active_82575(hw)) { |
182 | phy->ops.reset_phy = igb_phy_hw_reset_sgmii_82575; | 182 | phy->ops.reset = igb_phy_hw_reset_sgmii_82575; |
183 | phy->ops.read_phy_reg = igb_read_phy_reg_sgmii_82575; | 183 | phy->ops.read_reg = igb_read_phy_reg_sgmii_82575; |
184 | phy->ops.write_phy_reg = igb_write_phy_reg_sgmii_82575; | 184 | phy->ops.write_reg = igb_write_phy_reg_sgmii_82575; |
185 | } else { | 185 | } else { |
186 | phy->ops.reset_phy = igb_phy_hw_reset; | 186 | phy->ops.reset = igb_phy_hw_reset; |
187 | phy->ops.read_phy_reg = igb_read_phy_reg_igp; | 187 | phy->ops.read_reg = igb_read_phy_reg_igp; |
188 | phy->ops.write_phy_reg = igb_write_phy_reg_igp; | 188 | phy->ops.write_reg = igb_write_phy_reg_igp; |
189 | } | 189 | } |
190 | 190 | ||
191 | /* Set phy->phy_addr and phy->id. */ | 191 | /* Set phy->phy_addr and phy->id. */ |
@@ -435,7 +435,7 @@ static s32 igb_phy_hw_reset_sgmii_82575(struct e1000_hw *hw) | |||
435 | * SFP documentation requires the following to configure the SPF module | 435 | * SFP documentation requires the following to configure the SPF module |
436 | * to work on SGMII. No further documentation is given. | 436 | * to work on SGMII. No further documentation is given. |
437 | */ | 437 | */ |
438 | ret_val = hw->phy.ops.write_phy_reg(hw, 0x1B, 0x8084); | 438 | ret_val = hw->phy.ops.write_reg(hw, 0x1B, 0x8084); |
439 | if (ret_val) | 439 | if (ret_val) |
440 | goto out; | 440 | goto out; |
441 | 441 | ||
@@ -464,28 +464,28 @@ static s32 igb_set_d0_lplu_state_82575(struct e1000_hw *hw, bool active) | |||
464 | s32 ret_val; | 464 | s32 ret_val; |
465 | u16 data; | 465 | u16 data; |
466 | 466 | ||
467 | ret_val = phy->ops.read_phy_reg(hw, IGP02E1000_PHY_POWER_MGMT, &data); | 467 | ret_val = phy->ops.read_reg(hw, IGP02E1000_PHY_POWER_MGMT, &data); |
468 | if (ret_val) | 468 | if (ret_val) |
469 | goto out; | 469 | goto out; |
470 | 470 | ||
471 | if (active) { | 471 | if (active) { |
472 | data |= IGP02E1000_PM_D0_LPLU; | 472 | data |= IGP02E1000_PM_D0_LPLU; |
473 | ret_val = phy->ops.write_phy_reg(hw, IGP02E1000_PHY_POWER_MGMT, | 473 | ret_val = phy->ops.write_reg(hw, IGP02E1000_PHY_POWER_MGMT, |
474 | data); | 474 | data); |
475 | if (ret_val) | 475 | if (ret_val) |
476 | goto out; | 476 | goto out; |
477 | 477 | ||
478 | /* When LPLU is enabled, we should disable SmartSpeed */ | 478 | /* When LPLU is enabled, we should disable SmartSpeed */ |
479 | ret_val = phy->ops.read_phy_reg(hw, IGP01E1000_PHY_PORT_CONFIG, | 479 | ret_val = phy->ops.read_reg(hw, IGP01E1000_PHY_PORT_CONFIG, |
480 | &data); | 480 | &data); |
481 | data &= ~IGP01E1000_PSCFR_SMART_SPEED; | 481 | data &= ~IGP01E1000_PSCFR_SMART_SPEED; |
482 | ret_val = phy->ops.write_phy_reg(hw, IGP01E1000_PHY_PORT_CONFIG, | 482 | ret_val = phy->ops.write_reg(hw, IGP01E1000_PHY_PORT_CONFIG, |
483 | data); | 483 | data); |
484 | if (ret_val) | 484 | if (ret_val) |
485 | goto out; | 485 | goto out; |
486 | } else { | 486 | } else { |
487 | data &= ~IGP02E1000_PM_D0_LPLU; | 487 | data &= ~IGP02E1000_PM_D0_LPLU; |
488 | ret_val = phy->ops.write_phy_reg(hw, IGP02E1000_PHY_POWER_MGMT, | 488 | ret_val = phy->ops.write_reg(hw, IGP02E1000_PHY_POWER_MGMT, |
489 | data); | 489 | data); |
490 | /* | 490 | /* |
491 | * LPLU and SmartSpeed are mutually exclusive. LPLU is used | 491 | * LPLU and SmartSpeed are mutually exclusive. LPLU is used |
@@ -494,24 +494,24 @@ static s32 igb_set_d0_lplu_state_82575(struct e1000_hw *hw, bool active) | |||
494 | * SmartSpeed, so performance is maintained. | 494 | * SmartSpeed, so performance is maintained. |
495 | */ | 495 | */ |
496 | if (phy->smart_speed == e1000_smart_speed_on) { | 496 | if (phy->smart_speed == e1000_smart_speed_on) { |
497 | ret_val = phy->ops.read_phy_reg(hw, | 497 | ret_val = phy->ops.read_reg(hw, |
498 | IGP01E1000_PHY_PORT_CONFIG, &data); | 498 | IGP01E1000_PHY_PORT_CONFIG, &data); |
499 | if (ret_val) | 499 | if (ret_val) |
500 | goto out; | 500 | goto out; |
501 | 501 | ||
502 | data |= IGP01E1000_PSCFR_SMART_SPEED; | 502 | data |= IGP01E1000_PSCFR_SMART_SPEED; |
503 | ret_val = phy->ops.write_phy_reg(hw, | 503 | ret_val = phy->ops.write_reg(hw, |
504 | IGP01E1000_PHY_PORT_CONFIG, data); | 504 | IGP01E1000_PHY_PORT_CONFIG, data); |
505 | if (ret_val) | 505 | if (ret_val) |
506 | goto out; | 506 | goto out; |
507 | } else if (phy->smart_speed == e1000_smart_speed_off) { | 507 | } else if (phy->smart_speed == e1000_smart_speed_off) { |
508 | ret_val = phy->ops.read_phy_reg(hw, | 508 | ret_val = phy->ops.read_reg(hw, |
509 | IGP01E1000_PHY_PORT_CONFIG, &data); | 509 | IGP01E1000_PHY_PORT_CONFIG, &data); |
510 | if (ret_val) | 510 | if (ret_val) |
511 | goto out; | 511 | goto out; |
512 | 512 | ||
513 | data &= ~IGP01E1000_PSCFR_SMART_SPEED; | 513 | data &= ~IGP01E1000_PSCFR_SMART_SPEED; |
514 | ret_val = phy->ops.write_phy_reg(hw, | 514 | ret_val = phy->ops.write_reg(hw, |
515 | IGP01E1000_PHY_PORT_CONFIG, data); | 515 | IGP01E1000_PHY_PORT_CONFIG, data); |
516 | if (ret_val) | 516 | if (ret_val) |
517 | goto out; | 517 | goto out; |
@@ -1035,7 +1035,7 @@ static s32 igb_setup_copper_link_82575(struct e1000_hw *hw) | |||
1035 | * depending on user settings. | 1035 | * depending on user settings. |
1036 | */ | 1036 | */ |
1037 | hw_dbg("Forcing Speed and Duplex\n"); | 1037 | hw_dbg("Forcing Speed and Duplex\n"); |
1038 | ret_val = igb_phy_force_speed_duplex(hw); | 1038 | ret_val = hw->phy.ops.force_speed_duplex(hw); |
1039 | if (ret_val) { | 1039 | if (ret_val) { |
1040 | hw_dbg("Error Forcing Speed and Duplex\n"); | 1040 | hw_dbg("Error Forcing Speed and Duplex\n"); |
1041 | goto out; | 1041 | goto out; |
@@ -1423,9 +1423,9 @@ static struct e1000_mac_operations e1000_mac_ops_82575 = { | |||
1423 | }; | 1423 | }; |
1424 | 1424 | ||
1425 | static struct e1000_phy_operations e1000_phy_ops_82575 = { | 1425 | static struct e1000_phy_operations e1000_phy_ops_82575 = { |
1426 | .acquire_phy = igb_acquire_phy_82575, | 1426 | .acquire = igb_acquire_phy_82575, |
1427 | .get_cfg_done = igb_get_cfg_done_82575, | 1427 | .get_cfg_done = igb_get_cfg_done_82575, |
1428 | .release_phy = igb_release_phy_82575, | 1428 | .release = igb_release_phy_82575, |
1429 | }; | 1429 | }; |
1430 | 1430 | ||
1431 | static struct e1000_nvm_operations e1000_nvm_ops_82575 = { | 1431 | static struct e1000_nvm_operations e1000_nvm_ops_82575 = { |