๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #5233

Re: [PATCH net-next v6 3/9] net: dsa: realtek: rtl8365mb: set speed for family D

#5233
From: netdev-bot+sashiko
Date: Tue, 20 Oct 2026 01:41
65 lines
10181 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] 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
Technical Details
Message-ID: <179246048740.3135.14592585398817212074@kernel.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-348958-linux-kernel-netdev=dewy.ru
References: <75829f0c-69d4-4c16-8300-142023f840d7@yahoo.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-348958-linux-kernel-netdev=dewy.ru
From: netdev-bot+sashiko@kernel.org
Newsgroups: linux.kernel.netdev
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
Organization: Usenet Network
Message-ID: <179246048740.3135.14592585398817212074@kernel.org>
References: <75829f0c-69d4-4c16-8300-142023f840d7@yahoo.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="3759621"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:dJHTqBPaTgJuZE5foiBxg3xa8io= sha256:v0tm4Ma5eJd4gUGROZ4nfm/SiSNN2eRrpXknCxYqOJo=
	sha1:Scak6WAPg5Bfme2jDG3o4082JVU= sha256:YMbq0b55X8ZBiGDv784h8WwhnyajOW4AEGOtz+Gvbtg=
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 E8551110BAF; Tue, 20 Oct 2026 04:43:46 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.729
X-Spam-Status: No, score=-3.729 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.329, 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 BhA4WkQHqz2G;
	Tue, 20 Oct 2026 04:43:43 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-348958-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 7E309110B62; Tue, 20 Oct 2026 04:43:33 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 5FD6E60AC5; Tue, 20 Oct 2026 01:41:32 +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=1792460492;
	b=ICKUGbz32fXS36Md1Xr4WATsMQov9y6oViYE0tKkFCfuh+S25dP61jZd3UOqBklW9FaF
	 LKCz38J3Fg/eDDwvIqJOXxR2KkBXtVzb7Rshpx3b3t6o4QlBUgGtVoI7k6f1fCVTECwnQ
	 W4qEUcqP1O1v+g5GvHyi/49Z6zlgg+sCitYtlwzpi5uobK009PUw7DDnbXI5FkM2+U2ts
	 TSGiEwKLQH9kJHfMMLN10uGwUou6Ccel+6AYA3Ukw2CISXyavbsFl2czPsiC3SP5+cIQq
	 o+Pr3RQI4MAtkOKusvlJPp72J9BcywZLmnWsR2nQhfwFMeV2wOc8iYjPYTJVtQ3FW+A==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792460492;
	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=OSYF1NwugUVOIfmyavH/lgXJtnbm8axpRYf+453IfXI=;
	b=RJJdnusY+C2pkHjxUDVL/DkEFxakH0QWdcasQa6aDkER2E2cFZkei7hCVBhvRCXpVcPK
	 AOl/GRXBh0eYnefw5pL5zdoeDSPp6Yz3C2nEWvA3wPz6KYspLN2/o4PQBX4CgRyo4Q4Wc
	 9w2VMTzrM+o2rOM3eCUNQ2kBFSEQgvs2GM6IeAPRld6DXGho+YrbJByshYsu/nq0o0e66
	 BR+LCp8MzTDfbOkFLVH3mEdllOwtMeo8D5kirqeSi45QoiNPtQeWkkE8AC80Qix0ro35S
	 +/xRockt2NLyE+a6B+b7QH0dsSrbWfJkW9l67aMmilOXW7UZUzIgjFON5otfai10XTg==
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="Rmr/Y751";
	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 1075B606A32D;
	Tue, 20 Oct 2026 01:41:32 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Rmr/Y751
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=1792460489;
	b=T7SAkcD0hfE3rA+nMPv8v4KIOoEcJsqTUH7a+DrqsbS5z6f6Tld8uRXpRmE1djBnOY+Q
	 khtzBvXlJZIPsT0mjXpcUcpxIqR8dtrMQzzeYbvQT6p66MdepD9AZNf/qKOhRy2Iz26+L
	 f/TeLTuQuHmO7mQem2GqF88rItpkqlqMYdtaYmD3m1Pj/VxZ3tBsiIjoayW9DWAM/vo87
	 glqTJaM4Y2WbXqYFk0Y3BoIYEnPJ2JwuUFH4kUoHnfLa2/eB7YzskYuQokugQDB1ZkkbO
	 BrvBNXVV15+hi5fmJEvKwJ2+QmgtqqRT2hI05Ri8K7zFqHZ8UQDGE0s9s76Ka1sQ9UA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792460489;
	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=OSYF1NwugUVOIfmyavH/lgXJtnbm8axpRYf+453IfXI=;
	b=AxwE9+e3xGcRFGLQ2shBMOizy7GfQ4NOzOVQ1clUulGz+xn5PIuY92V3gm3YRC/wsEzf
	 FOnUmc8xYgNTlhYkTXMoFhHQZU4HEWWJOE5CV748ix4pvKOTrCWwMvaQY2/2/nXXFytsK
	 eO9qBK65QBKCObn4okFTM91vtypwB2NTRt4MoJmaFf/92j4+8ia5O0xg7HO+g9QHoEwvm
	 NOkkLrmrBoS4P3wrXAESxOFZkr/HkIPabs616qC3QiLd+6k2UiUn9mowjKlAh5G0/H1au
	 Fw8TVfbW1FtfjXprAgLIewL3zXLvE7tiwNpeoGNQ+VwXz0g9uBWTD46eLUlbncX3vag==
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="Rmr/Y751";
	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 DC8F8606A321;
	Tue, 20 Oct 2026 01:41:28 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id E32871F000C5;
	Tue, 20 Oct 2026 01:41:27 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1792460488;
	bh=OSYF1NwugUVOIfmyavH/lgXJtnbm8axpRYf+453IfXI=;
	h=Subject:From:To:Cc:Date:In-Reply-To:References;
	b=Rmr/Y7518FkX/XqrQBIxXgYFQMLyu5szj62mX/3lkC+wHy8/FeV7itYT2wi5T/EAF
	 jbt3TImbq0MIowaI5AGM18Uu7NwGf/o27hqRjQ2HQqExshhdhzNXe+zkU+g3LI6Nos
	 9IZhM+AxeBJ5rA8urC3XbcrYO+J0ujMiOkY6HnZW6M/Z877SxdqH9V/q/p7diJTtVg
	 RsfLD1XU5yVxTPu47IML4Ief4cudPa+PC02eOVhq1aqXsb0LXJgqhkisPVFIcBzUfo
	 DhDyEFf+aonhRuk8jXb2Nn2Zo0btdL4NxLjNZI9gUrcHhqB5dB5wUncvgmO5qDOEVF
	 bCtYfFz+I1KZQ==
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
X-In-Reply-To: <75829f0c-69d4-4c16-8300-142023f840d7@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