Re: [PATCH net-next] net: phy: motorcomm: Add cable test support for internal YT861x PHYs

From: David Yang

Date: Sun Oct 04 2026 - 16:57:30 EST


On Mon, Oct 5, 2026 at 4:17 AM Andrew Lunn <andrew@xxxxxxx> wrote:
>
> On Mon, Oct 05, 2026 at 02:42:43AM +0800, David Yang wrote:
> > The YT921x switches integrate GbE PHYs of the YT861x family (PHY ID
> > 0x01e04281) on the switch-internal MDIO bus exposed by the yt921x DSA
> > driver. Without a specific driver they bind to the generic PHY driver
> > and lack the cable diagnostic facility. Add a driver entry for them
> > with cable test support.
>
> Since this does two different things, it should be two patches.
>
> Does the cable test code apply to other devices this driver drive?

I don't have other devices to test with.

> > @@ -18,7 +19,9 @@
> > #define PHY_ID_YT8522 0x4f51e928
> > #define PHY_ID_YT8531 0x4f51e91b
> > #define PHY_ID_YT8531S 0x4f51e91a
> > +#define PHY_ID_INT861X 0x01e04281
>
> Is this the ID of the switch itself? It does not match the pattern.

It's live captured from the system. By the way the serdes PCS does
show something matching the pattern 0x4f51e899.

> > #define PHY_ID_YT8821 0x4f51ea19
>
> Andrew