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] Claim: the kernel-doc for struct rtl8365mb_family_info in rtl8365mb.h says …@jam_table: family-specific initialization jam… -- net: dsa: realtek: rtl8365mb: add support for RTL8367S-VB This patch adds the RTL8367S-VB (chip ID 0x6642, version 0x0010) to the rtl8365mb chip table. It also adds rtl8365mb_family_d, which wires up the family D callbacks from the earlier patches in the series. Family D leaves jam_table unset, so switch setup runs no init jam sequence for it.
> diff --git a/drivers/net/dsa/realtek/rtl8365mb_main.c b/drivers/net/dsa/realtek/rtl8365mb_main.c > index 207f59a30d175..4ef1a5b0f1d57 100644 > --- a/drivers/net/dsa/realtek/rtl8365mb_main.c > +++ b/drivers/net/dsa/realtek/rtl8365mb_main.c
[ ... ]
> @@ -845,6 +861,24 @@ static const struct rtl8365mb_family_info rtl8365mb_family_c = { > .qos_set_untag_pcp = rtl8365mb_c_qos_set_untag_pcp, > }; > > +static const struct rtl8365mb_family_info rtl8365mb_family_d = { > + .family = RTL8365MB_FAMILY_D, > + .ext_config_forcemode = rtl8365mb_d_ext_config_forcemode,
[Severity: Low] This isn't a bug, but rtl8365mb_family_d is the first initializer that leaves jam_table NULL and jam_size 0. The kernel-doc for struct rtl8365mb_family_info in rtl8365mb.h still describes both fields as always present: * @jam_table: family-specific initialization jam table * @jam_size: number of entries in @jam_table There is no runtime problem. The only user, rtl8365mb_switch_init(), already checks for NULL and is bounded by jam_size: if (fi->jam_table) { for (i = 0; i < fi->jam_size; i++) { Should the kernel-doc say that jam_table is optional and may be NULL, the same way qos_set_untag_pcp is marked optional in that struct?
> + .vlan_4k_read = rtl8365mb_d_vlan_4k_read, > + .vlan_4k_write = rtl8365mb_d_vlan_4k_write,
[ ... ]
> + .qos_iprio_to_hw = rtl8365mb_d_qos_iprio_to_hw, > + .qos_hw_to_iprio = rtl8365mb_d_qos_hw_to_iprio, > +};
[ ... ]
-- Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/1383…%40yahoo.com