Skip to content

Commit b6cef26

Browse files
hkallweitdavem330
authored andcommitted
r8169: sync EEE handling for RTL8168h with vendor driver
Sync EEE init for RTL8168h with vendor driver and add two writes to vendor-specific registers. Signed-off-by: Heiner Kallweit <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent d700d26 commit b6cef26

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

drivers/net/ethernet/realtek/r8169_main.c

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2216,6 +2216,16 @@ static void rtl8168g_config_eee_phy(struct rtl8169_private *tp)
22162216
phy_modify_paged(tp->phydev, 0x0a43, 0x11, 0, BIT(4));
22172217
}
22182218

2219+
static void rtl8168h_config_eee_phy(struct rtl8169_private *tp)
2220+
{
2221+
struct phy_device *phydev = tp->phydev;
2222+
2223+
rtl8168g_config_eee_phy(tp);
2224+
2225+
phy_modify_paged(phydev, 0xa4a, 0x11, 0x0000, 0x0200);
2226+
phy_modify_paged(phydev, 0xa42, 0x14, 0x0000, 0x0080);
2227+
}
2228+
22192229
static void rtl8169s_hw_phy_config(struct rtl8169_private *tp)
22202230
{
22212231
static const struct phy_reg phy_reg_init[] = {
@@ -3283,7 +3293,7 @@ static void rtl8168h_1_hw_phy_config(struct rtl8169_private *tp)
32833293
phy_modify_paged(tp->phydev, 0x0a44, 0x11, BIT(7), 0);
32843294

32853295
rtl8168g_disable_aldps(tp);
3286-
rtl8168g_config_eee_phy(tp);
3296+
rtl8168h_config_eee_phy(tp);
32873297
rtl_enable_eee(tp);
32883298
}
32893299

0 commit comments

Comments
 (0)