Article View: linux.kernel.netdev
Article #26039Re: [PATCH net-next v18 15/15] net: dsa: realtek: rtl8365mb: add support for RTL8367S-VB
From: netdev-bot+sashiko
Date: Wed, 02 Dec 2026 23:58
Date: Wed, 02 Dec 2026 23:58
65 lines
10370 bytes
10370 bytes
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
Technical Details
Message-ID:
<179625593840.3146.575037186266569071@kernel.org>Path:
mbox-mo1.pugleaf.net!srl.newsdeef.eu.MISMATCH!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376139-linux-kernel-netdev=dewy.ruReferences:
<925fb208-e8fa-410c-84ed-1b8e2a2b0757@yahoo.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srl.newsdeef.eu.MISMATCH!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376139-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev 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 Organization: Usenet Network Message-ID: <179625593840.3146.575037186266569071@kernel.org> References: <925fb208-e8fa-410c-84ed-1b8e2a2b0757@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="2092062"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:BeLioGMHKvPFs7Z5AY1lz2ndlQE= sha256:IH2qPNsqklrXz+BNx0RD6hfgcMZBo+5ZkwhAlWRkL3A= sha1:tmLLTpxeJGsOl/9TBGbV1cT+zIM= sha256:cpa4Ctb0nVUkHMoR2XJGkr7z9Gd3OPOJU58q8FM1DW8= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 6C8121177A5; Thu, 3 Dec 2026 02:59:20 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.401 X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yiLIs61Yb2p8; Thu, 3 Dec 2026 02:59:17 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-376139-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4]) by mail.dewy.ru (Postfix) with ESMTPS id 5F2491177A1; Thu, 3 Dec 2026 02:59:06 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sin.lore.kernel.org (Postfix) with ESMTP id 7E1652419E; Wed, 2 Dec 2026 23:59:03 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796255941; b=uI1YDtkQ0vEx6hKX3Kt/MWOQkXAAQZO6yCWFLs8Lm+vaWuKGqSQ40oJzcDhh106P5o3l 0tsqrpvhgYRxZYPovxHB7bTWEu8hQ+//vzISGLsGxYoIqwcd7IaBJQ5njRCySeqzqdi1r 2fNDfVk/Nsmlp/Aoe0JXPFCZ1JN2vRIZW9mMRIjwNGCD7NAgXFkh5vh3sqY853gwDYVBW VfVApOiN3++e5lEqS3x2scrKCqFrTOEdmhc3QYk2Fg8H85ycLBIkG3b3tWWB0r65MEBjN c1Lj7YjdbcR9FhovPxv77G+GVcwDFALfNzOh4f5NjKkTtbpICQrkUJlTW1zBKrUwX/w== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796255941; h=X-Original-To:Received:Received:DKIM-Signature:Subject:From:To:Cc: Date:Message-ID:In-Reply-To:References:X-sashiko-severity: Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version; bh=pgNKE6hxkar7nwXnDJP/BYJ98NCn+qBXMtQYkx2veew=; b=XM7ikwRdNKGjAfozW/vmt5c5Mwnis7/YgqDVMHaFR+EBcXWl/hQD6pyle4iCIdGhAXGw /iZ/uFjdjdqE9MEaI5j6N4qF0XkMRxF9t6XwIIMu6/fDiUWY5OUwdFk9AItqbhFON/q33 ttlmp2yr2G9jAATKlpqFHY/kGs9BNJRUMOYK6eC3o+hJoZz/V2VEndlG4lG++67qymB2A /fjzMfsJg/ycLgjgFQqAnhYaUT7qi7gq6LdTEWGQAV9OUCcwnJdt5QTYvNgdD0D6lwVPF 7GQ6B+YvyWlJncMYpDdDSkok19riIhgnZadeS+mf79uaZmzYmRLxIX0OYrpcm9G4D0Q== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=msBMzWTx; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 03AAB606A691; Wed, 2 Dec 2026 23:59:01 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=msBMzWTx X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796255940; b=Z+F3maP/Niou4yvIIdtYPsd5NIZj/fQMEIhtzvUdAecIb6q14EFyUxduDrm/xzQwYSll L4+ZzOWs0+9L1LkBGhBkwV4+lE3fneJ59f8kzCg4Z1PCCvTQ4lkaRXnYVnByaUwuKV23B zudrIxPMduKUY9VgixjZEaAAv0PdZVKMGQwvGGZLWYt3fGv2HF3QS88uvYbk1foguiwJv KyUpjl6ySpkmpUfjbvuXN9GULzbZ+f9aJOta3SheEpcfqa0c1d1d4dr4skExP3BLff/kE 2bX72EVjail5Vt2966O1kEpLUsIV1ju5hJMAp9JscLto99SglpWMdRmVIho+0cVBmBQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796255940; h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID: In-Reply-To:References:X-sashiko-severity:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=pgNKE6hxkar7nwXnDJP/BYJ98NCn+qBXMtQYkx2veew=; b=t5yqm5R7rs5dBsCPIK+yD8/LSb0MyhkqPDhq/t6p0RqtdA9uFuGBB16Kq+QQ/l9wUJ1B Cyg9dw8UatfPm4v2t/Uo55kEI8ryY2BLhP8+svMyRZqUkTvs9g8VcOAEY97+rPEmzO+94 GgkEC3SsF5EG6KPbNqDxq3mQuTam5KAImdtID0Va0OhcdjQZltvRvvxx9YmNTicqQ1R7j iGiGRzaSEIWOL2JQzs4Yk+pbqEEef5phTtacuPwQT3lghabRhZEoAHfQybsBOqBLnRx9N 11SBHxChn5mlQ46GaFkMEDnBTB5tFATtCO0Qxq7d0MLLxLEKBc4RNfXiCjh3XvSn3ng== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=msBMzWTx; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 252D3606A337; Wed, 2 Dec 2026 23:59:00 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id D42891F00924; Wed, 2 Dec 2026 23:58:58 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796255939; bh=pgNKE6hxkar7nwXnDJP/BYJ98NCn+qBXMtQYkx2veew=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=msBMzWTxDhqpVbfFCkRPwmx56ZJAtp5Ju4feBnjHwH2MHO8cvWU0KMSyjl8mMx0CF dAnSxAFdvMMLL9gIc0CITFlg/FyxEqcMABPG2EJU2MUUeX61gebLS8CFVD/ugpak03 Q72aERO1nU6/CZNaXUAHyxFS4HuAjiezRMyl4UQGWJRSQgDssdU/pDHd60y0hMDmhR +/xy+sWi00qUljEUzCgb4xq1YbRIcQ9+GmdyM3qY90cCtwHDrdV06C4jEOIAKlmbSv V2iXyYdtYn8CJFYjpDbz6xurMfHphz6ZOzZHIQLFIvcymyMWIjCeqGAsmA6hqm4fIt +l1j60k+2sQzw== X-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 X-In-Reply-To: <925fb208-e8fa-410c-84ed-1b8e2a2b0757@yahoo.com> X-sashiko-severity: Low X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list