On Tue, Nov 24, 2026 at 2:26 AM <netd…@kernel.org> wrote:
> > 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 message for "net: dsa: rzn1-a5psw: Add support for > RZ/T2H Ethernet switch" does not match what the patch does. > > -- > > net: dsa: rzn1-a5psw: Add support for RZ/T2H Ethernet switch > > This commit adds OF match data for the RZ/T2H ETHSW, which uses the A5PSW > IP but has a different port count, tagging protocol, pattern matcher > offsets, VLAN_RES layout and lookup table size. It also adds the > renesas,r9a09g077-ethsw compatible, which RZ/N2H uses as a fallback. >
> > Configure the driver for the RZ/T2H variant with: > > - 4 ports (3 external and 1 management), with the management port > > at port 3. > > - DSA_TAG_PROTO_RZT2H_ETHSW tagging protocol. > > - A fixed management port frame length of 0x3fff. > > - Pattern matcher register offsets of 0x3f00 and 0x3f40. > > - VLAN_RES fields using VLANID[15:4] and PORTMASK[3:0]. > > - 4096 lookup table entries. > > - The odd MDIO clock divider formula.
> > [Severity: Low] > Is this list still accurate after the v4->v5 change to rzt2h_of_data? > > The last bullet mentions an MDIO clock divider formula. However, > rzt2h_of_data has no MDIO setting, and struct a5psw_of_data has no member > for one. a5psw_mdio_config() uses the same formula on every SoC: > > drivers/net/dsa/rzn1_a5psw.c:a5psw_mdio_config() { > ... > div = DIV_ROUND_UP(DIV_ROUND_UP(rate, mdio_freq) - 1, 2); > ... > } > > That formula came from the earlier commit in this series, "net: dsa: > rzn1-a5psw: Fix MDIO clock divider calculation". Its message says the > formula is the same on RZ/N1, RZ/T2H and RZ/N2H. > > The list also leaves out a setting the patch does add: > > .keep_mac_tx_enabled = true, > > For the new compatible, this skips CMD_CFG.SW_RESET during setup, keeps > TX_ENA set, and gates user-port TX through PORT_ENA. > > Could the MDIO bullet be dropped and a bullet for keep_mac_tx_enabled be > added? >
Agreed, I will update the commit message in the next version. Cheers, Prabhakar