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 v19 15/15] net: dsa: realtek: rtl8365mb: add support for RTL8367S-VB
Date: Fri, 04 Dec 2026 02:18:51 +0000 [thread overview]
Message-ID: <179635073149.3146.8834479666757845007@kernel.org> (raw)
In-Reply-To: <b894096a-5620-4a31-b2b4-4979e29e7ac1@yahoo.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue(s) to consider.
Critical: 0 · High: 0 · Medium: 1 · Low: 0
If you believe none of the issues are legitimate, please reply to each
issue of Medium severity or higher and explain why the AI is wrong.
If any of them are legitimate and you plan to respin, please let patchwork
know by including "pw-bot: cr" as a separate line at the end of your reply
(one such reply per series is enough).
- [Medium] In rtl8365mb_pcs_config()
(drivers/net/dsa/realtek/rtl8365mb_main.c), DIGITAL_INTERFACE_SELECT…
--
net: dsa: realtek: rtl8365mb: add support for RTL8367S-VB
This patch adds the RTL8367S-VB (chip ID 0x6642, version 0x0010) to the
chip table as the first family D chip. That makes the family D code paths
from the earlier patches reachable. The new rtl8365mb_family_d leaves
jam_table unset and maps the SerDes to port 6 / EXT0 and the RGMII
interface to port 7 / EXT1.
> diff --git a/drivers/net/dsa/realtek/rtl8365mb_main.c b/drivers/net/dsa/realtek/rtl8365mb_main.c
> index b3fc6fbfac7c8..2b7b364542a6c 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,
[ ... ]
> @@ -935,6 +969,19 @@ static const struct rtl8365mb_chip_info rtl8365mb_chip_infos[] = {
> },
> .num_tx_queues = 8,
> },
> + {
> + .name = "RTL8367S-VB",
> + .chip_id = 0x6642,
> + .chip_ver = 0x0010,
> + .family_info = &rtl8365mb_family_d,
> + .port_mask = PORT_MASK(GENMASK(4, 0) | BIT(6) | BIT(7)),
> + .extints = {
> + { 6, 0, PHY_INTF(SGMII) | PHY_INTF(HSGMII) },
> + { 7, 1, PHY_INTF(MII) | PHY_INTF(TMII) |
> + PHY_INTF(RMII) | PHY_INTF(RGMII) },
> + },
> + .num_tx_queues = 8,
> + },
> };
[Severity: Medium]
This entry puts the SerDes on EXT0, and rtl8365mb_family_d has no
jam_table. On family D, does anything ever program the EXT0 mode field
(bits[3:0]) of DIGITAL_INTERFACE_SELECT (0x1305)?
In rtl8365mb_pcs_config(), the only write to that register is skipped on
family D:
drivers/net/dsa/realtek/rtl8365mb_main.c:rtl8365mb_pcs_config() {
...
/* On family D, SDS_MISC selects the SerDes mode. id (1) refers to
* RGMII port 7 on RTL8367S-VB and must not be overwritten. The EXT0
* field of DIGITAL_INTERFACE_SELECT is not programmed here and keeps
* its power-on or strap default; whether the vendor sequence sets it
* for the SerDes was not verified, but the link came up on all tested
* boards.
*/
if (!is_d) {
val = sds_mode << RTL8365MB_DIGITAL_INTERFACE_SELECT_MODE_OFFSET(id);
ret = regmap_update_bits(priv->map,
RTL8365MB_DIGITAL_INTERFACE_SELECT_REG(id),
...
}
On family C, the jam table in rtl8365mb_setup() also writes
{ 0x1305, 0xC000 }. Here fi->jam_table is NULL, so that write is skipped
as well. On family D, rtl8365mb_ext_config_rgmii() only writes the EXT1
nibble (bits[7:4]) for port 7.
That leaves the EXT0 field and bits[15:14] at whatever value they have
after rtl8365mb_reset_chip(), which is the power-on or strap value.
What happens on a board where that default leaves EXT0 in a non-SerDes
or disabled mode? rtl8365mb_d_ext_config_forcemode() would still force
MAC6 up from mac_link_up(), and pcs_get_state() only reads the SerDes
link bit. Could the CPU port then report link up but pass no traffic,
with no error logged?
If the hardware ignores the EXT0 nibble once SDS_MISC selects
RTL8365MB_D_SDS_MISC_MAC6_SEL_SDS0, there is no problem. Can that be
checked against the vendor RTL8367D sequence? If not, should the EXT0
field be programmed explicitly for the SerDes on family D?
--
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/59c7992d-1c83-4bf1-a2f4-c853d4777190%40yahoo.com
next prev parent reply other threads:[~2026-12-04 2:18 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <59c7992d-1c83-4bf1-a2f4-c853d4777190.ref@yahoo.com>
2026-12-03 2:09 ` [PATCH net-next v19 00/15] net: dsa: realtek: rtl8365mb: add support for RTL8367S-VB Mieczyslaw Nalewaj
2026-12-03 2:10 ` [PATCH net-next v19 01/15] dt-bindings: net: dsa: realtek: add RTL8367S-VB Mieczyslaw Nalewaj
2026-12-03 2:10 ` [PATCH net-next v19 02/15] net: dsa: realtek: rtl8365mb: add chip family infrastructure Mieczyslaw Nalewaj
2026-12-03 2:11 ` [PATCH net-next v19 03/15] net: dsa: realtek: rtl8365mb: refactor forcemode handling Mieczyslaw Nalewaj
2026-12-03 2:11 ` [PATCH net-next v19 04/15] net: dsa: realtek: rtl8365mb: set speed for family D Mieczyslaw Nalewaj
2026-12-03 2:11 ` [PATCH net-next v19 05/15] net: dsa: realtek: rtl8365mb: set RGMII mode " Mieczyslaw Nalewaj
2026-12-03 2:11 ` [PATCH net-next v19 06/15] net: dsa: realtek: rtl8365mb: refactor VLAN 4k handling Mieczyslaw Nalewaj
2026-12-03 2:11 ` [PATCH net-next v19 07/15] net: dsa: realtek: rtl8365mb: add VLAN 4k/IVL for family D Mieczyslaw Nalewaj
2026-12-03 2:11 ` [PATCH net-next v19 08/15] net: dsa: realtek: rtl8365mb: refactor PVID handling Mieczyslaw Nalewaj
2026-12-03 2:17 ` [PATCH net-next v19 09/15] net: dsa: realtek: rtl8365mb: use raw VID for PVID on family D Mieczyslaw Nalewaj
2026-12-03 2:17 ` [PATCH net-next v19 10/15] net: dsa: realtek: rtl8365mb: add family D SDS13 PCS support Mieczyslaw Nalewaj
2026-12-04 2:18 ` netdev-bot+sashiko
2026-12-03 2:18 ` [PATCH net-next v19 11/15] net: dsa: realtek: rtl8365mb: refactor L2 MAC handling Mieczyslaw Nalewaj
2026-12-03 2:18 ` [PATCH net-next v19 12/15] net: dsa: realtek: rtl8365mb: make L2/LUT access work on family D Mieczyslaw Nalewaj
2026-12-03 2:18 ` [PATCH net-next v19 13/15] net: dsa: realtek: rtl8365mb: refactor QoS priority handling Mieczyslaw Nalewaj
2026-12-03 2:18 ` [PATCH net-next v19 14/15] net: dsa: realtek: rtl8365mb: use PCP numbering on family D Mieczyslaw Nalewaj
2026-12-03 2:18 ` [PATCH net-next v19 15/15] net: dsa: realtek: rtl8365mb: add support for RTL8367S-VB Mieczyslaw Nalewaj
2026-12-04 2:18 ` netdev-bot+sashiko [this message]
2026-12-03 14:24 ` [PATCH net-next v19 00/15] " Linus Walleij
2026-12-03 15:11 ` Mieczyslaw Nalewaj
2026-12-03 15:31 ` Andrew Lunn
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=179635073149.3146.8834479666757845007@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox