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] The commit subject says "Add support for Template Control
register for PMA" and the body says "PMA Template Test Mode register…
--
net: phy: Add support for Template Control register for PMA
This commit adds genphy_c45_pma_test_mode(), a helper that programs the
test mode field of the 10GBASE-T PMA/PMD register 1.132. It also adds the
MDIO_PMA_10GBT_TESTMODE register and field definitions to the uapi
mdio.h header, so a caller can select Normal or Test Mode 1..7.
> net: phy: Add support for Template Control register for PMA
>
> Add support for the 10GBASE-T PMA Template Test Mode register
> field, which allows selecting one of eight test modes (Normal and
> TestMode1..TestMode7) used for PHY validation.
[Severity: Low]
This isn't a bug, but are "Template Control register" and "Template Test
Mode register" the right names here?
The patch handles PMA/PMD register 1.132. IEEE 802.3 Clause 45 calls this
the 10GBASE-T (MultiGBASE-T) test mode register.
The patch uses that name too. The kernel-doc for genphy_c45_pma_test_mode()
in drivers/net/phy/phy-c45.c says:
* genphy_c45_pma_test_mode - configure the 10GBASE-T PMA test mode register
In include/uapi/linux/mdio.h, the register is defined as:
#define MDIO_PMA_10GBT_TESTMODE 132 /* Test mode control */
The field macros are MDIO_PMA_10GBT_TESTMODE_MASK, _NORMAL and _1.._7. The
word "Template" does not appear anywhere in the diff.
Could the subject and body use the standard register name? For example:
net: phy: c45: add helper for 10GBASE-T PMA test mode register
--
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/2026…%40motor-comm.com