Re: [PATCH net-next v6 6/6] net: dsa: motorcomm: Add support for Motorcomm YT922x

From: Kyle Switch

Date: Wed Sep 09 2026 - 23:23:35 EST



On 9/10/26 09:57, Andrew Lunn wrote:
No one else, except you, can maintain this stuff. Drop it for now and
discuss it later.
There also appears to be similar magic in the PHY driver. Can this be
consolidated?
Ans: This part of the initialization is for the switch SerDes, so from my

side it may be hard to consolidate.
Is it the same IP? Same configuration? Or totally different?
Ans: They are the same IP, but there are the following differences:

1. phy8824 only supports usxgmii_multiport mode.

    yt922x has 4utp+2serdes. These two serdes support more modes,

    such as usxgmii_singleport, bx1000, sgmii, etc., which results in more

    initialization configurations for the switch serdes.

2. Another point that I think is difficult to integrate is that the phyID

    of the switch serdes (defined in USXGMII reg space mii 0x2, 0x3) is

    inconsistent with the phyID of phy8824 (defined in UTP reg space mii 0x2, 0x3),

    so phy8824 cannot be matched, and therefore two sets of initialization

   configurations are required.

Andrew