Skip to content

Commit

Permalink
Merge pull request torvalds#371 from CoreELEC/pr-eth-eee-leds
Browse files Browse the repository at this point in the history
net: phy: rtl8211f disable eee led indication
  • Loading branch information
mdrjr authored Mar 5, 2019
2 parents ca7a857 + c33092b commit ca2edaf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/phy/realtek.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <linux/amlogic/pm.h>
#endif
#define RTL821x_LCR 0x10
#define RTL821x_EEELCR 0x11
#define RTL821x_PHYSR 0x11
#define RTL821x_PHYSR_DUPLEX 0x2000
#define RTL821x_PHYSR_SPEED 0xc000
Expand Down Expand Up @@ -152,6 +153,7 @@ static int rtl8211f_config_init(struct phy_device *phydev)
#endif
phy_write(phydev, RTL8211F_PAGE_SELECT, 0xd04); /*set page 0xd04*/
phy_write(phydev, RTL821x_LCR, 0XC171); /*led configuration*/
phy_write(phydev, RTL821x_EEELCR, 0); /*disable eee led indication*/

/* restore to default page 0 */
phy_write(phydev, RTL8211F_PAGE_SELECT, 0x0);
Expand Down

0 comments on commit ca2edaf

Please sign in to comment.