Netdev List
 help / color / mirror / Atom feed
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
Subject: Re: [PATCH net-next v6 3/9] net: dsa: realtek: rtl8365mb: set speed for family D
Date: Tue, 20 Oct 2026 01:41:27 +0000	[thread overview]
Message-ID: <179246048740.3135.14592585398817212074@kernel.org> (raw)
In-Reply-To: <75829f0c-69d4-4c16-8300-142023f840d7@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] This finding was checked and rejected as a false positive,
  because later patches in the series finish the work.

--

net: dsa: realtek: rtl8365mb: set speed for family D

This commit adds family D handling to rtl8365mb_ext_config_forcemode().
On family D, 2500M uses its own speed value (5), and the top speed bit
goes into a new FORCE_SPEED2 field. The forced-mode configuration is
written to a per-port register at 0x12c0 + port, and forced mode is
enabled by writing 0xFFFF to 0x12c8 + port, while family C keeps its
existing behaviour.

> diff --git a/drivers/net/dsa/realtek/rtl8365mb_main.c b/drivers/net/dsa/realtek/rtl8365mb_main.c
> index 840db5ad32efe..2dabc4da861f4 100644
> --- a/drivers/net/dsa/realtek/rtl8365mb_main.c
> +++ b/drivers/net/dsa/realtek/rtl8365mb_main.c

[ ... ]

> @@ -1646,23 +1669,32 @@ static int rtl8365mb_ext_config_forcemode(struct realtek_priv *priv, int port,
>  	u32 r_duplex;
>  	u32 r_speed;
>  	u32 r_link;
> +	bool is_d;
>  	int val;
>  	int ret;
>  
>  	if (!extint)
>  		return -ENODEV;
>  
> +	is_d = rtl8365mb_get_family(priv) == RTL8365MB_FAMILY_D;

[Severity: Low]
This isn't a bug, but can the family D branch run at this point in the
series? Every rtl8365mb_chip_infos[] entry is still RTL8365MB_FAMILY_C
here. So is_d is always false, and rtl8365mb_ext_config_forcemode() only
takes the family C path.

Later patches in the series make the path reachable:

  "net: dsa: realtek: rtl8365mb: add family D SDS13 PCS support" adds
  the family D SerDes setup to rtl8365mb_pcs_config(). It also makes
  rtl8365mb_pcs_link_up() return early on family D.

  "net: dsa: realtek: rtl8365mb: add support for RTL8367S-VB" adds the
  first FAMILY_D chip, with extint ports 6 and 7. That keeps
  0x12c0 + port below the 0x12c8 enable window.

The other preparatory patches in the series say that the family D path
stays unreachable until the final chip table patch. Could this commit
message say the same?

[ ... ]

-- 
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/5a4715dd-89e0-4868-9ffb-c8fb73b18d04%40yahoo.com

  parent reply	other threads:[~2026-10-20  1:41 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <5a4715dd-89e0-4868-9ffb-c8fb73b18d04.ref@yahoo.com>
2026-10-16  0:59 ` [PATCH net-next v6 0/9] net: dsa: realtek: rtl8365mb: add support for RTL8367S-VB Mieczyslaw Nalewaj
2026-10-16  1:01   ` [PATCH net-next v6 1/9] dt-bindings: net: dsa: realtek: add RTL8367S-VB Mieczyslaw Nalewaj
2026-10-16 13:50     ` Luiz Angelo Daros de Luca
2026-10-16  1:02   ` [PATCH net-next v6 2/9] net: dsa: realtek: rtl8365mb: add chip family infrastructure Mieczyslaw Nalewaj
2026-10-16 13:53     ` Luiz Angelo Daros de Luca
2026-10-16  1:03   ` [PATCH net-next v6 3/9] net: dsa: realtek: rtl8365mb: set speed for family D Mieczyslaw Nalewaj
2026-10-16 20:04     ` Linus Walleij
2026-10-18 22:40     ` Luiz Angelo Daros de Luca
2026-10-18 23:04       ` Andrew Lunn
2026-10-19  8:28       ` Linus Walleij
2026-10-20  1:41     ` netdev-bot+sashiko [this message]
2026-10-16  1:04   ` [PATCH net-next v6 4/9] net: dsa: realtek: rtl8365mb: set RGMII mode " Mieczyslaw Nalewaj
2026-10-16 20:06     ` Linus Walleij
2026-10-20  1:41     ` netdev-bot+sashiko
2026-10-16  1:05   ` [PATCH net-next v6 5/9] net: dsa: realtek: rtl8365mb: set and get vlan 4k " Mieczyslaw Nalewaj
2026-10-16 20:06     ` Linus Walleij
2026-10-16  1:06   ` [PATCH net-next v6 6/9] net: dsa: realtek: rtl8365mb: use raw VID for PVID on " Mieczyslaw Nalewaj
2026-10-16 20:08     ` Linus Walleij
2026-10-16  1:07   ` [PATCH net-next v6 7/9] net: dsa: realtek: rtl8365mb: add family D SDS13 PCS support Mieczyslaw Nalewaj
2026-10-16 20:14     ` Linus Walleij
2026-10-16  1:08   ` [PATCH net-next v6 8/9] net: dsa: realtek: rtl8365mb: re-latch the family D SerDes Mieczyslaw Nalewaj
2026-10-16 20:17     ` Linus Walleij
2026-10-20  1:41     ` netdev-bot+sashiko
2026-10-16  1:09   ` [PATCH net-next v6 9/9] net: dsa: realtek: rtl8365mb: add support for RTL8367S-VB Mieczyslaw Nalewaj
2026-10-16 20:17     ` Linus Walleij
2026-10-20  1:41     ` netdev-bot+sashiko
2026-10-17 10:59   ` [PATCH net-next v6 0/9] " Stanislaw Pal
2026-10-19  2:44   ` Luiz Angelo Daros de Luca
2026-10-19  5:09     ` Mieczyslaw Nalewaj

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=179246048740.3135.14592585398817212074@kernel.org \
    --to=netdev-bot+sashiko@kernel.org \
    --cc=andrew@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=kuba@kernel.org \
    --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=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