Re: [PATCH net-next V2 4/5] net: lan743x: Implement phylink pcs

From: Andrew Lunn
Date: Thu Sep 12 2024 - 12:13:39 EST


> Our PCI11x1x hardware has a single MDIO controller that gets used
> regardless of whether the chip interface is set to RGMII or to
> SGMII/BASE-X.

That would be the external MDIO bus.

But where is the PCS connected?

> When we are using an SFP, the MDIO lines from our controller are not
> used / connected at all to the SFP.

Correct. The SFP cage does not have MDIO pins. There are two commonly
used protocols for MDIO over I2C, which phylink supports. The MAC
driver is not involved. All it needs to report to phylink is when the
PCS transitions up/down.

Andrew