On Fri, Jul 14, 2023 at 02:31:35PM +0800, Luo Jie wrote:
The fast retrain and master slave seed configs are only applicable when
the 2.5G capability is supported.
Probably worth a comment - or a helper function.
E.g.
static bool qca808x_has_fast_retrain(struct phy_device *phydev)
{
return linkmode_test_bit(ETHTOOL_LINK_MODE_2500baseT_Full_BIT,
phydev->supported);
}
Which then makes the code more self-documenting.