[PATCH net-next v10 11/15] net: phy: at803x: Support SFP through phy_port interface
Andrew Lunn
andrew at lunn.ch
Sat Jul 26 14:24:36 PDT 2025
On Tue, Jul 22, 2025 at 02:16:16PM +0200, Maxime Chevallier wrote:
> Convert the at803x driver to use the generic phylib SFP handling, via a
> dedicated .attach_port() callback, populating the supported interfaces.
>
> As these devices are limited to 1000BaseX, a workaround is used to also
> support, in a very limited way, copper modules. This is done by
> supporting SGMII but limiting it to 1G full duplex (in which case it's
> somwhat compatible with 1000BaseX).
Missing e
> +static int at8031_attach_port(struct phy_device *phydev, struct phy_port *port)
> {
...
> + if (!port->is_mii)
> + return 0;
That seems common to all these drivers? Can it be pulled into the
core?
> - if (iface == PHY_INTERFACE_MODE_SGMII)
> - dev_warn(&phydev->mdio.dev, "module may not function if 1000Base-X not supported\n");
I think we need to keep this warning. I don't remember the details,
but i think this is the kernel saying the hardware is broken, this
might not work, we will give it a go, but don't blame me if it does
not work. We need to keep this disclaimer.
Andrew
More information about the linux-arm-kernel
mailing list