]> git.baikalelectronics.ru Git - kernel.git/commitdiff
r8169: support L1.2 control on RTL8168h
authorHeiner Kallweit <hkallweit1@gmail.com>
Mon, 31 Jan 2022 18:37:22 +0000 (19:37 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 2 Feb 2022 04:27:43 +0000 (20:27 -0800)
According to Realtek RTL8168h supports the same L1.2 control as RTL8125.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://lore.kernel.org/r/4784d5ce-38ac-046a-cbfa-5fdd9773f820@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/realtek/r8169_main.c

index 4c267b731a3940f6b18244b7cf068f0186f4679c..67014eb769691db8b36b9a42daa5567880f3f8b8 100644 (file)
@@ -2697,6 +2697,7 @@ static void rtl_hw_aspm_clkreq_enable(struct rtl8169_private *tp, bool enable)
                RTL_W8(tp, Config2, RTL_R8(tp, Config2) | ClkReqEn);
 
                switch (tp->mac_version) {
+               case RTL_GIGA_MAC_VER_45 ... RTL_GIGA_MAC_VER_48:
                case RTL_GIGA_MAC_VER_60 ... RTL_GIGA_MAC_VER_63:
                        /* reset ephy tx/rx disable timer */
                        r8168_mac_ocp_modify(tp, 0xe094, 0xff00, 0);
@@ -2708,6 +2709,7 @@ static void rtl_hw_aspm_clkreq_enable(struct rtl8169_private *tp, bool enable)
                }
        } else {
                switch (tp->mac_version) {
+               case RTL_GIGA_MAC_VER_45 ... RTL_GIGA_MAC_VER_48:
                case RTL_GIGA_MAC_VER_60 ... RTL_GIGA_MAC_VER_63:
                        r8168_mac_ocp_modify(tp, 0xe092, 0x00ff, 0);
                        break;