From: netdev-bot+sashiko@kernel.org
To: namiltd@yahoo.com
Cc: linusw@kernel.org, andrew@lunn.ch, olteanv@gmail.com,
kuba@kernel.org, davem@davemloft.net, edumazet@google.com,
pabeni@redhat.com, linux@armlinux.org.uk, luizluca@gmail.com,
maxime.chevallier@bootlin.com, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org, alvin.sipraga@analog.com,
gusfmora@gmail.com, kuncy7@gmail.com, fabianotassotti@gmail.com,
gabonpivovich@gmail.com, contact@c127.dev,
o.rempel@pengutronix.de
Subject: Re: [PATCH net-next v18 15/15] net: dsa: realtek: rtl8365mb: add support for RTL8367S-VB
Date: Wed, 02 Dec 2026 23:58:58 +0000 [thread overview]
Message-ID: <179625593840.3146.575037186266569071@kernel.org> (raw)
In-Reply-To: <925fb208-e8fa-410c-84ed-1b8e2a2b0757@yahoo.com>
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/1383a67b-15e4-4c76-8bbf-65d3cbfa1fc1%40yahoo.com
prev parent reply other threads:[~2026-12-02 23:59 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1383a67b-15e4-4c76-8bbf-65d3cbfa1fc1.ref@yahoo.com>
2026-12-01 23:48 ` [PATCH net-next v18 00/15] net: dsa: realtek: rtl8365mb: add support for RTL8367S-VB Mieczyslaw Nalewaj
2026-12-01 23:50 ` [PATCH net-next v18 01/15] dt-bindings: net: dsa: realtek: add RTL8367S-VB Mieczyslaw Nalewaj
2026-12-01 23:51 ` [PATCH net-next v18 02/15] net: dsa: realtek: rtl8365mb: add chip family infrastructure Mieczyslaw Nalewaj
2026-12-01 23:51 ` [PATCH net-next v18 03/15] net: dsa: realtek: rtl8365mb: refactor forcemode handling Mieczyslaw Nalewaj
2026-12-01 23:51 ` [PATCH net-next v18 04/15] net: dsa: realtek: rtl8365mb: set speed for family D Mieczyslaw Nalewaj
2026-12-01 23:51 ` [PATCH net-next v18 05/15] net: dsa: realtek: rtl8365mb: set RGMII mode " Mieczyslaw Nalewaj
2026-12-02 23:58 ` netdev-bot+sashiko
2026-12-01 23:51 ` [PATCH net-next v18 06/15] net: dsa: realtek: rtl8365mb: refactor VLAN 4k handling Mieczyslaw Nalewaj
2026-12-01 23:51 ` [PATCH net-next v18 07/15] net: dsa: realtek: rtl8365mb: add VLAN 4k/IVL for family D Mieczyslaw Nalewaj
2026-12-02 23:58 ` netdev-bot+sashiko
2026-12-01 23:51 ` [PATCH net-next v18 08/15] net: dsa: realtek: rtl8365mb: refactor PVID handling Mieczyslaw Nalewaj
2026-12-01 23:55 ` [PATCH net-next v18 09/15] net: dsa: realtek: rtl8365mb: use raw VID for PVID on family D Mieczyslaw Nalewaj
2026-12-01 23:55 ` [PATCH net-next v18 10/15] net: dsa: realtek: rtl8365mb: add family D SDS13 PCS support Mieczyslaw Nalewaj
2026-12-02 23:58 ` netdev-bot+sashiko
2026-12-01 23:56 ` [PATCH net-next v18 11/15] net: dsa: realtek: rtl8365mb: refactor L2 MAC handling Mieczyslaw Nalewaj
2026-12-01 23:56 ` [PATCH net-next v18 12/15] net: dsa: realtek: rtl8365mb: make L2/LUT access work on family D Mieczyslaw Nalewaj
2026-12-02 23:58 ` netdev-bot+sashiko
2026-12-01 23:56 ` [PATCH net-next v18 13/15] net: dsa: realtek: rtl8365mb: refactor QoS priority handling Mieczyslaw Nalewaj
2026-12-01 23:56 ` [PATCH net-next v18 14/15] net: dsa: realtek: rtl8365mb: use PCP numbering on family D Mieczyslaw Nalewaj
2026-12-01 23:56 ` [PATCH net-next v18 15/15] net: dsa: realtek: rtl8365mb: add support for RTL8367S-VB Mieczyslaw Nalewaj
2026-12-02 23:58 ` netdev-bot+sashiko [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179625593840.3146.575037186266569071@kernel.org \
--to=netdev-bot+sashiko@kernel.org \
--cc=alvin.sipraga@analog.com \
--cc=andrew@lunn.ch \
--cc=contact@c127.dev \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=fabianotassotti@gmail.com \
--cc=gabonpivovich@gmail.com \
--cc=gusfmora@gmail.com \
--cc=kuba@kernel.org \
--cc=kuncy7@gmail.com \
--cc=linusw@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=luizluca@gmail.com \
--cc=maxime.chevallier@bootlin.com \
--cc=namiltd@yahoo.com \
--cc=netdev@vger.kernel.org \
--cc=o.rempel@pengutronix.de \
--cc=olteanv@gmail.com \
--cc=pabeni@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.