OSDN Git Service

r8169: allow to enable ASPM on RTL8125A
authorHeiner Kallweit <hkallweit1@gmail.com>
Tue, 21 Jul 2020 16:22:24 +0000 (18:22 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jul 2020 23:12:19 +0000 (16:12 -0700)
For most chip versions this has been added already. Allow also for
RTL8125A to enable ASPM.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169_main.c

index 975f5c1..d1da92a 100644 (file)
@@ -3622,6 +3622,7 @@ static void rtl_hw_start_8125a_1(struct rtl8169_private *tp)
        rtl_ephy_init(tp, e_info_8125a_1);
 
        rtl_hw_start_8125_common(tp);
+       rtl_hw_aspm_clkreq_enable(tp, true);
 }
 
 static void rtl_hw_start_8125a_2(struct rtl8169_private *tp)
@@ -3649,6 +3650,7 @@ static void rtl_hw_start_8125a_2(struct rtl8169_private *tp)
        rtl_ephy_init(tp, e_info_8125a_2);
 
        rtl_hw_start_8125_common(tp);
+       rtl_hw_aspm_clkreq_enable(tp, true);
 }
 
 static void rtl_hw_start_8125b(struct rtl8169_private *tp)