Re: [PATCH v2 06/10] net: pcs: xpcs: add ANRESTART support for SGMII link recovery

Maxime Chevallier <[email protected]> Sun, 2 Aug 2026 16:59:28 +0200
Newsgroups org.kernel.vger.linux-renesas-soc,org.infradead.lists.linux-arm-kernel,org.infradead.lists.linux-phy,org.infradead.lists.linux-rockchip,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel,org.kernel.vger.netdev
Message-ID <[email protected]>
Hi,

On 8/2/26 16:30, Andrew Lunn wrote:
> On Sun, Aug 02, 2026 at 11:11:40AM +0800, Coia Prant wrote:
>> Hi Andrew,
>>
>> Thanks for the careful review.
>>
>>> This probably needs more wide spread testing. I would be afraid that
>>> if you kick off an AN cycle, you loose the link until it completes?
>>> You would of noticed that on your hardware, but other hardware
>>> obviously behaves differently...
>>
>> The trigger condition is: link is down AND an_complete is set.
> 
> Ah, i missed the "link is down" check. That makes it safer.
> 
> I still find it interesting that this devices is different. Has the
> silicon vendor done the integration of the licensed IP wrong?
> 
>> Regarding testing:
>> - Jiawen Wu has tested this on Wangxun NICs and reported no regression
>>   (Tested-by tag included in the patch).
> 
> Probably Maxime will test on the platform he has, but i don't know if
> any use the XPCS.

Indeed :( The only XPCS HW I have right now is the ksz9477 switch, and it
uses an old version of the IP with its own quirks.

I'll test it indeed, but I've yet to find some affordable HW with an XPCS
and that I can easily source :(

Maxime

> 
> 	Andrew