Re: [PATCH net-next v9 4/7] r8169: add support for RTL8116af
From: Andrew Lunn
Date: Wed Sep 02 2026 - 11:28:53 EST
On Mon, Aug 31, 2026 at 01:37:42PM +0800, javen wrote:
> From: Javen Xu <javen_xu@xxxxxxxxxxxxxx>
>
> RTL8116af is sfp mode. Phylink uses pcs to get the link status from its
> serdes reg, instead of standard phy reg. Speed and duplex are hardcoded
> to 1000Mbps Full-Duplex. Also, RTL8116af doesn't have internal phy, so
> we add some checks to ensure that tp->phydev is not empty when we need it.
> In rtl_hw_start_8117(), the MAC calibration for register 0xd412 relies
> on reading the internal PHY register 0x0c42. Since RTL8116af does not
> have an internal PHY, this calibration step is intentionally bypassed.
>
> Signed-off-by: Javen Xu <javen_xu@xxxxxxxxxxxxxx>
Reviewed-by: Andrew Lunn <andrew@xxxxxxx>
Andrew