Skip to content

Commit d4ed95d

Browse files
hayesorzFrancois Romieu
authored andcommitted
r8169: fix wake on lan setting for non-8111E.
Only 8111E needs enable RxConfig bit 0 ~ 3 when suspending or shutdowning for wake on lan. Signed-off-by: Hayes Wang <[email protected]> Acked-by: Francois Romieu <[email protected]>
1 parent 7009042 commit d4ed95d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

drivers/net/r8169.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3393,8 +3393,10 @@ static void r8168_pll_power_down(struct rtl8169_private *tp)
33933393
rtl_writephy(tp, 0x1f, 0x0000);
33943394
rtl_writephy(tp, MII_BMCR, 0x0000);
33953395

3396-
RTL_W32(RxConfig, RTL_R32(RxConfig) |
3397-
AcceptBroadcast | AcceptMulticast | AcceptMyPhys);
3396+
if (tp->mac_version == RTL_GIGA_MAC_VER_32 ||
3397+
tp->mac_version == RTL_GIGA_MAC_VER_33)
3398+
RTL_W32(RxConfig, RTL_R32(RxConfig) | AcceptBroadcast |
3399+
AcceptMulticast | AcceptMyPhys);
33983400
return;
33993401
}
34003402

0 commit comments

Comments
 (0)