Skip to content

Commit 99af472

Browse files
aabodunrinJeff Kirsher
authored andcommitted
igb: New PHY_ID for i354 device
This patch changes PHY_ID for i354 device, now using M88E1543 instead of M88E1545. Signed-off-by: Akeem G Abodunrin <akeem.g.abodunrin@intel.com> Tested-by: Aaron Brown <aaron.f.brown@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
1 parent aa9b8cc commit 99af472

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

drivers/net/ethernet/intel/igb/e1000_82575.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ static s32 igb_init_phy_params_82575(struct e1000_hw *hw)
176176

177177
/* Verify phy id and set remaining function pointers */
178178
switch (phy->id) {
179-
case M88E1545_E_PHY_ID:
179+
case M88E1543_E_PHY_ID:
180180
case I347AT4_E_PHY_ID:
181181
case M88E1112_E_PHY_ID:
182182
case M88E1111_I_PHY_ID:
@@ -1448,7 +1448,7 @@ static s32 igb_setup_copper_link_82575(struct e1000_hw *hw)
14481448
switch (hw->phy.id) {
14491449
case I347AT4_E_PHY_ID:
14501450
case M88E1112_E_PHY_ID:
1451-
case M88E1545_E_PHY_ID:
1451+
case M88E1543_E_PHY_ID:
14521452
case I210_I_PHY_ID:
14531453
ret_val = igb_copper_link_setup_m88_gen2(hw);
14541454
break;
@@ -2477,28 +2477,28 @@ s32 igb_set_eee_i354(struct e1000_hw *hw)
24772477
u16 phy_data;
24782478

24792479
if ((hw->phy.media_type != e1000_media_type_copper) ||
2480-
(phy->id != M88E1545_E_PHY_ID))
2480+
(phy->id != M88E1543_E_PHY_ID))
24812481
goto out;
24822482

24832483
if (!hw->dev_spec._82575.eee_disable) {
24842484
/* Switch to PHY page 18. */
2485-
ret_val = phy->ops.write_reg(hw, E1000_M88E1545_PAGE_ADDR, 18);
2485+
ret_val = phy->ops.write_reg(hw, E1000_M88E1543_PAGE_ADDR, 18);
24862486
if (ret_val)
24872487
goto out;
24882488

2489-
ret_val = phy->ops.read_reg(hw, E1000_M88E1545_EEE_CTRL_1,
2489+
ret_val = phy->ops.read_reg(hw, E1000_M88E1543_EEE_CTRL_1,
24902490
&phy_data);
24912491
if (ret_val)
24922492
goto out;
24932493

2494-
phy_data |= E1000_M88E1545_EEE_CTRL_1_MS;
2495-
ret_val = phy->ops.write_reg(hw, E1000_M88E1545_EEE_CTRL_1,
2494+
phy_data |= E1000_M88E1543_EEE_CTRL_1_MS;
2495+
ret_val = phy->ops.write_reg(hw, E1000_M88E1543_EEE_CTRL_1,
24962496
phy_data);
24972497
if (ret_val)
24982498
goto out;
24992499

25002500
/* Return the PHY to page 0. */
2501-
ret_val = phy->ops.write_reg(hw, E1000_M88E1545_PAGE_ADDR, 0);
2501+
ret_val = phy->ops.write_reg(hw, E1000_M88E1543_PAGE_ADDR, 0);
25022502
if (ret_val)
25032503
goto out;
25042504

@@ -2549,7 +2549,7 @@ s32 igb_get_eee_status_i354(struct e1000_hw *hw, bool *status)
25492549

25502550
/* Check if EEE is supported on this device. */
25512551
if ((hw->phy.media_type != e1000_media_type_copper) ||
2552-
(phy->id != M88E1545_E_PHY_ID))
2552+
(phy->id != M88E1543_E_PHY_ID))
25532553
goto out;
25542554

25552555
ret_val = igb_read_xmdio_reg(hw, E1000_PCS_STATUS_ADDR_I354,

drivers/net/ethernet/intel/igb/e1000_defines.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@
787787
#define I350_I_PHY_ID 0x015403B0
788788
#define M88_VENDOR 0x0141
789789
#define I210_I_PHY_ID 0x01410C00
790-
#define M88E1545_E_PHY_ID 0x01410EA0
790+
#define M88E1543_E_PHY_ID 0x01410EA0
791791

792792
/* M88E1000 Specific Registers */
793793
#define M88E1000_PHY_SPEC_CTRL 0x10 /* PHY Specific Control Register */
@@ -909,9 +909,9 @@
909909
#define E1000_EEE_LP_ADV_DEV_I210 7 /* EEE LP Adv Device */
910910
#define E1000_EEE_LP_ADV_ADDR_I210 61 /* EEE LP Adv Register */
911911
#define E1000_MMDAC_FUNC_DATA 0x4000 /* Data, no post increment */
912-
#define E1000_M88E1545_PAGE_ADDR 0x16 /* Page Offset Register */
913-
#define E1000_M88E1545_EEE_CTRL_1 0x0
914-
#define E1000_M88E1545_EEE_CTRL_1_MS 0x0001 /* EEE Master/Slave */
912+
#define E1000_M88E1543_PAGE_ADDR 0x16 /* Page Offset Register */
913+
#define E1000_M88E1543_EEE_CTRL_1 0x0
914+
#define E1000_M88E1543_EEE_CTRL_1_MS 0x0001 /* EEE Master/Slave */
915915
#define E1000_EEE_ADV_DEV_I354 7
916916
#define E1000_EEE_ADV_ADDR_I354 60
917917
#define E1000_EEE_ADV_100_SUPPORTED (1 << 1) /* 100BaseTx EEE Supported */

drivers/net/ethernet/intel/igb/e1000_phy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1806,7 +1806,7 @@ s32 igb_get_cable_length_m88_gen2(struct e1000_hw *hw)
18061806
phy->max_cable_length = phy_data / (is_cm ? 100 : 1);
18071807
phy->cable_length = phy_data / (is_cm ? 100 : 1);
18081808
break;
1809-
case M88E1545_E_PHY_ID:
1809+
case M88E1543_E_PHY_ID:
18101810
case I347AT4_E_PHY_ID:
18111811
/* Remember the original page select and set it to 7 */
18121812
ret_val = phy->ops.read_reg(hw, I347AT4_PAGE_SELECT,

0 commit comments

Comments
 (0)