Skip to content

Commit 37bfe46

Browse files
committed
Revert "lan78xx: Read initial EEE status from DT"
This reverts commit 98fb76f.
1 parent 580649c commit 37bfe46

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

drivers/net/usb/lan78xx.c

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2897,29 +2897,6 @@ static int lan78xx_phy_init(struct lan78xx_net *dev)
28972897
goto phylink_uninit;
28982898
}
28992899

2900-
if (of_property_read_bool(phydev->mdio.dev.of_node,
2901-
"microchip,eee-enabled")) {
2902-
struct ethtool_keee edata;
2903-
memset(&edata, 0, sizeof(edata));
2904-
2905-
linkmode_set_bit(ETHTOOL_LINK_MODE_1000baseT_Full_BIT,
2906-
edata.advertised);
2907-
linkmode_set_bit(ETHTOOL_LINK_MODE_100baseT_Full_BIT,
2908-
edata.advertised);
2909-
2910-
edata.eee_enabled = true;
2911-
edata.tx_lpi_enabled = true;
2912-
if (of_property_read_u32(phydev->mdio.dev.of_node,
2913-
"microchip,tx-lpi-timer",
2914-
&edata.tx_lpi_timer))
2915-
edata.tx_lpi_timer = 600; /* non-aggressive */
2916-
rtnl_lock();
2917-
(void)lan78xx_set_eee(dev->net, &edata);
2918-
rtnl_unlock();
2919-
2920-
phy_support_eee(phydev);
2921-
}
2922-
29232900
ret = lan78xx_configure_leds_from_dt(dev, phydev);
29242901
if (ret < 0)
29252902
goto phylink_uninit;

0 commit comments

Comments
 (0)