[PATCH net-next v2 0/6] r8169: add support for phylink
From: javen <hidden>
Date: 2026-06-11 09:44:30
Also in:
lkml
From: Javen Xu <redacted> This series patch adds support for phylink. RTL8116af is a fiber mode card, link status and speed can not be read from standard phy reg. So we read link status and speed from serdes reg by pcs. We have not changed the loading process of RTL8127atf. Hi, This series patch mainly add support for phylink framework and RTL8116af. I have tried to remove tp->phydev as much as possible. But for realtek PCIe nics, they are single chips. Some internal phy shared the same PHY id, but the required PHY parameters differ depending on the specific MAC/Chip it is integrated with. And we can not tell them part only using PHY registers. So firmware here can not be moved to phy driver. To improve code readability, I merged part of the code which use phylink independently into rtl8169_init_phy. And as Andrew reviewed, RTL8127atf should indeed be integrated with phylink. However, I found that this was a patch submitted independently by Heiner, link: https://lore.kernel.org/netdev/b012587a-2c38-4597-9af9-3ba723ba6cba@gmail.com/ (local) So to limit the influence of this patch, I want to know if I can release a separate patch to refactor it later? Thanks, BRs, Javen v1 link: https://lore.kernel.org/netdev/20260605103906.1445-1-javen_xu@realsil.com.cn/ (local) Javen Xu (6): r8169: add speed in private struct r8169: create a virtual interrupt for linkchg r8169: add support for phylink r8169: add support for RTL8116af r8169: add ltr support for RTL8116af r8169: fix RTL8116af can not enter s0idle and c10 drivers/net/ethernet/realtek/Kconfig | 1 + drivers/net/ethernet/realtek/r8169_main.c | 549 +++++++++++++++++----- 2 files changed, 438 insertions(+), 112 deletions(-) -- 2.43.0