Re: [PATCH net-next v14 02/15] net: dsa: realtek: rtl8365mb: add chip family infrastructure

From: netdev-bot+sashiko

Date: Thu Nov 26 2026 - 22:00:34 EST


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] This patch removes the kernel-doc entries '@jam_table: chip-
specific initialization jam table' and '@jam_size: size of the chip's…

--

net: dsa: realtek: rtl8365mb: add chip family infrastructure

This patch adds enum rtl8365mb_family and struct rtl8365mb_family_info,
which hold the data shared by all chips of one family (the family id and
the init jam table). struct rtl8365mb_chip_info now points to a
family_info instance, and all existing chips use RTL8365MB_FAMILY_C.
rtl8365mb_get_family_info() and rtl8365mb_is_d() are declared in a new
rtl8365mb.h.

> diff --git a/drivers/net/dsa/realtek/rtl8365mb.h b/drivers/net/dsa/realtek/rtl8365mb.h
> new file mode 100644
> index 0000000000000..7b0c7109378c6
> --- /dev/null
> +++ b/drivers/net/dsa/realtek/rtl8365mb.h

[ ... ]

> +struct rtl8365mb_jam_tbl_entry;
> +
> +struct rtl8365mb_family_info {
> + enum rtl8365mb_family family;
> + const struct rtl8365mb_jam_tbl_entry *jam_table;
> + size_t jam_size;
> +};

[Severity: Low]
This isn't a bug, but should struct rtl8365mb_family_info have a
kernel-doc block?

The patch removes these lines from the struct rtl8365mb_chip_info
kernel-doc in rtl8365mb_main.c:

* @jam_table: chip-specific initialization jam table
* @jam_size: size of the chip's jam table

The jam_table and jam_size fields themselves move unchanged into
struct rtl8365mb_family_info. That struct has no kernel-doc, and the new
family member isn't documented either. struct rtl8365mb_extint and
struct rtl8365mb_chip_info in the same driver still document every
member.

The struct has no /** marker, so kernel-doc won't warn about it. Later
patches in the series add about 18 more members to this struct
(ext_config_forcemode, vlan_4k_read/write, vlan_port_get_pvid,
l2_entry_size, the l2_*_to_* converters and the qos_* hooks), and none of
them are documented by the end of the series.

Could a kernel-doc block be added here that keeps the removed @jam_table
and @jam_size descriptions, describes @family, and covers the members
added later in the series?

[ ... ]

--
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/874b29a3-f47f-4bf2-a0f6-2f9fea712f4c%40yahoo.com