Skip to content

Commit 6cf8741

Browse files
hkallweitopsiff
authored andcommitted
r8169: align WAKE_PHY handling with r8125/r8126 vendor drivers
mainline inclusion from mainline-v6.13-rc1 category: bugfix Vendor drivers r8125/r8126 apply this additional magic setting when enabling WAKE_PHY, so do the same here. Signed-off-by: Heiner Kallweit <[email protected]> Reviewed-by: Simon Horman <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]> (cherry picked from commit e3e9e90) Signed-off-by: Wentao Guan <[email protected]>
1 parent d078a67 commit 6cf8741

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/net/ethernet/realtek/r8169_main.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1562,6 +1562,9 @@ static void __rtl8169_set_wol(struct rtl8169_private *tp, u32 wolopts)
15621562
}
15631563

15641564
r8169_mod_reg8_cond(tp, Config3, LinkUp, wolopts & WAKE_PHY);
1565+
if (rtl_is_8125(tp))
1566+
r8168_mac_ocp_modify(tp, 0xe0c6, 0x3f,
1567+
wolopts & WAKE_PHY ? 0x13 : 0);
15651568
r8169_mod_reg8_cond(tp, Config5, UWF, wolopts & WAKE_UCAST);
15661569
r8169_mod_reg8_cond(tp, Config5, BWF, wolopts & WAKE_BCAST);
15671570
r8169_mod_reg8_cond(tp, Config5, MWF, wolopts & WAKE_MCAST);

0 commit comments

Comments
 (0)