On 11/30/26 5:43 AM, Andrew Lunn wrote:
> On Mon, Nov 30, 2026 at 02:55:19AM +0200, Cristian Ciocaltea wrote:
>> The PHY does not properly support the Clause 45 auto-negotiation >> registers that phylib writes from genphy_c45_config_aneg(). As a >> consequence, restricting the advertisement from userspace does not have >> the expected outcome on the wire. For example, setting it to >> 2500baseT/Full will confuse the peer, as 5000baseT/Full still shows up >> in the link partner advertised link modes. Even worse, setting it to >> 100baseT/Full + 1000baseT/Full will end up with a broken link, because >> the peer would only see the unrelated 2500baseT/Full + 5000baseT/Full >> modes. >> >> Since the firmware owns the advertisement and is reachable over IPC, >> implement the .config_aneg callback and pass the highest advertised >> speed.
> > That is not technically correct. > > Supported link modes: 10baseT/Half 10baseT/Full > 100baseT/Half 100baseT/Full > 1000baseT/Full > > There is free choice of any combination of the supported modes. > It should be possible to ask it to advertise > > Advertised link modes: 10baseT/Half 1000baseT/Full > > I find it surprising it is totally broken. 10/100/1G are often in > vendor registers, so you might need to implement those link modes > separately to the standard C45 2500, 5000 and 10G.
Yeah, this was unexpected for me as well, but I later confirmed it with the vendor: the firmware doesn't support arbitrary combinations of modes. It can only take a top speed, and everything below is implicitly advertised :-( Cristian