Skip to content

Commit

Permalink
net: phy: 8211f disable eee led indication
Browse files Browse the repository at this point in the history
  • Loading branch information
arthur-liberman committed Mar 3, 2019
1 parent ca7a857 commit c33092b
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 c33092b

Please sign in to comment.