Hi,
Replying to the automated review of the v1 patch (the series was
restructured in v2; this is not a repost).
[High] .get_tunable/.set_tunable on the YT8531 entry
Legitimate, and already addressed in v2
(<2026…@163.com>): the tunable support is
now scoped to the YT8531S entry only, which has .read_page and
.write_page (yt8521_read_page/yt8521_write_page), so the paged helpers
are safe there. The YT8531 entry was dropped from the series.
[Medium] raw UTP-space BMCR reset in yt8531s_set_downshift()
Legitimate concern; both sub-cases are real:
(a) forced link: unlike genphy_soft_reset(), the helper does not
re-apply the forced speed/duplex settings after the reset, so a
link forced with "ethtool -s ... autoneg off" would come back with
autoneg enabled while phydev->autoneg still says AUTONEG_DISABLE.
(b) suspended: the reset clears BMCR_PDOWN while phydev->suspended
stays set, powering the copper side back up behind phylib's back.
For reference, marvell's m88e1111_set_downshift() ends with
genphy_soft_reset(), which handles (a) via genphy_setup_forced() but
has the same exposure to (b).
Unless maintainers prefer otherwise, I plan to handle both in v3:
restore the forced settings after the commit reset when
phydev->autoneg == AUTONEG_DISABLE, and skip the commit reset with
-EBUSY when phydev->suspended is set.
pw-bot: cr
Thanks,
chengke
Re: [PATCH] net: phy: motorcomm: add downshift tunable support for YT8531/YT8531S
- From
- mjkc…@163.com (chengke)
- Organization
- Usenet Network
- Message-ID
- <2026…@163.com>
- Date
- Newsgroups
- linux.kernel.netdev