]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
r8169: add DASH support for RTL8127AP
authorJaven Xu <javen_xu@realsil.com.cn>
Fri, 9 Jan 2026 07:04:14 +0000 (15:04 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 13 Jan 2026 09:44:18 +0000 (10:44 +0100)
This adds DASH support for chip RTL8127AP. Its mac version is
RTL_GIGA_MAC_VER_80 and revision id is 0x04. DASH is a standard for
remote management of network device, allowing out-of-band control.

Signed-off-by: Javen Xu <javen_xu@realsil.com.cn>
Link: https://patch.msgid.link/20260109070415.1115-2-javen_xu@realsil.com.cn
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/realtek/r8169_main.c

index faf910ecf81a92756adbad18663de23b34d02f60..dca8a6b4c2e278cd9b889eb0f35d24a4f16c880b 100644 (file)
@@ -1559,6 +1559,10 @@ static enum rtl_dash_type rtl_get_dash_type(struct rtl8169_private *tp)
                return RTL_DASH_EP;
        case RTL_GIGA_MAC_VER_66:
                return RTL_DASH_25_BP;
+       case RTL_GIGA_MAC_VER_80:
+               return (tp->pci_dev->revision == 0x04)
+                       ? RTL_DASH_25_BP
+                       : RTL_DASH_NONE;
        default:
                return RTL_DASH_NONE;
        }