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

From: Andrew Lunn

Date: Sun Oct 04 2026 - 16:18:12 EST


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?

> @@ -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.

> #define PHY_ID_YT8821 0x4f51ea19

Andrew