Re: [PATCH iwl-next 2/4] e1000: use phylink for a CE4100 fixed link
From: Joseph Telaak
Date: Tue Dec 01 2026 - 04:21:06 EST
Hi Maxime,
Thanks for the review.
On 12/1/26 09:58, Maxime Chevallier wrote:
> Nice to see some steps to use phylink in these drivers. I wonder what's
> the amount of work to port "the rest" of the PHY logoc to phylink too here,
> likely quite a bit with the NIC handling the PHY in most cases...
Quite a bit, I think. The 8254x parts drive their PHYs through MDIC and
also have fiber and SerDes modes, and I only have CE4100 boards to test
on. So I limited this to the CE4100, where a fixed link to a switch
currently fails to probe. Without a fixed-link or phy-handle the old
path runs unchanged.
> Not extremely familiar with that driver, but can't we just
> check if the struct phylink *phylink pointer is set in the
> e1000_adapter struct instead of maintaining a bool here ?
Yes. I added the bool because e1000_hw.c only gets struct e1000_hw, but
it can reach the adapter through hw->back, as e1000_get_hw_dev() already
does. I will drop the bool in v2 and check adapter->phylink everywhere.
> phylink is an internal framework, mentionning it in an error log
> is only going to bring confusion :)
Good point, I will change it to "phy-mode must be an rgmii mode".
Thanks,
Joseph