Thank you for your contribution! Sashiko AI review found more severe issue(s) in other patches of this series. This mail is only an FYI, in case you want to address the nit picks below when you respin. Low priority / nit picks for your consideration: - [Low] In _bcm_phy_load_values() (drivers/net/phy/bcm-phy-lib.c), two comments say values are being restored, but the code only writes zeros. -- net: phy: broadcom: Implement cable test initialization for BCM54210E This commit loads vendor ECD parameters on the BCM54210E before a cable test starts. It adds _bcm_phy_load_values() and __bcm_phy_cable_test_init() to write the staging and paged expansion registers. Only the BCM54210E model in _bcm_phy_cable_test_start() runs this sequence.
> diff --git a/drivers/net/phy/bcm-phy-lib.c b/drivers/net/phy/bcm-phy-lib.c > index 4911dc8210cdd..1a170faf05aef 100644 > --- a/drivers/net/phy/bcm-phy-lib.c > +++ b/drivers/net/phy/bcm-phy-lib.c > @@ -657,6 +657,156 @@ static int __bcm_phy_enable_legacy_access(struct phy_device *phydev)
[ ... ]
> +/* Load the ECD page and clear the staging registers afterwards. > + * The enable mask requires regs[] to list consecutive offsets from 0xe0. > + */ > +static int _bcm_phy_load_values(struct phy_device *phydev, > + const struct __bcm_phy_regs *regs, > + size_t num_regs, > + u16 page_num) > +{
[ ... ]
> + /* Write strobe 0 */ > + ret = __bcm_phy_write_exp(phydev, MII_BCM54XX_EXP_SEL_ER + 0xcd, 0); > + if (ret < 0) > + return ret; > + > + /* Restore expansion E* register values */ > + for (i = 0; i < num_regs; i++) { > + ret = __bcm_phy_write_exp(phydev, MII_BCM54XX_EXP_SEL_ER + > + regs[i].reg, 0); > + if (ret < 0) > + return ret; > + } > + > + /* And restore 0xEF register */ > + return __bcm_phy_write_exp(phydev, MII_BCM54XX_EXP_SEL_ER + 0xef, 0); > +}
[Severity: Low] This isn't a bug, but should these two comments say "clear" instead of "restore"? Nothing in _bcm_phy_load_values() reads or saves the earlier contents of the E* staging registers or of MII_BCM54XX_EXP_SEL_ER + 0xef. Both blocks just write 0 to them. The header comment above the function says "clear the staging registers afterwards", which matches what the code does. The two comments in the body say the old values are restored, which contradicts the header. [ ... ]
-- Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/2026…%40broadcom.com