[net] r8169: add missing RX enabling for WoL on RTL8125
diff mbox series

Message ID 9254c6fd-1cbf-c17b-ef16-2e4749b1bbf3@gmail.com
State Superseded
Delegated to: David Miller
Headers show
Series
  • [net] r8169: add missing RX enabling for WoL on RTL8125
Related show

Commit Message

Heiner Kallweit Dec. 6, 2019, 10:24 p.m. UTC
RTL8125 also requires to enable RX for WoL.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
---
This fix won't apply cleanly to 5.4 because RTL_GIGA_MAC_VER_52
was added for 5.5.
---
 drivers/net/ethernet/realtek/r8169_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch
diff mbox series

diff --git a/drivers/net/ethernet/realtek/r8169_main.c b/drivers/net/ethernet/realtek/r8169_main.c
index 46a492229..67a4d5d45 100644
--- a/drivers/net/ethernet/realtek/r8169_main.c
+++ b/drivers/net/ethernet/realtek/r8169_main.c
@@ -3695,7 +3695,7 @@  static void rtl_wol_suspend_quirk(struct rtl8169_private *tp)
 	case RTL_GIGA_MAC_VER_32:
 	case RTL_GIGA_MAC_VER_33:
 	case RTL_GIGA_MAC_VER_34:
-	case RTL_GIGA_MAC_VER_37 ... RTL_GIGA_MAC_VER_52:
+	case RTL_GIGA_MAC_VER_37 ... RTL_GIGA_MAC_VER_61:
 		RTL_W32(tp, RxConfig, RTL_R32(tp, RxConfig) |
 			AcceptBroadcast | AcceptMulticast | AcceptMyPhys);
 		break;