🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #25008

Re: [PATCH net-next v10 08/12] r8152: split RTL_VER_17 into QFN68 and QFN100 package variants

#25008
From: netdev-bot+sashiko
Date: Tue, 01 Dec 2026 06:46
92 lines
11072 bytes
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] This patch silently changes which firmware every existing
  QFN100 RTL8159 user loads, and the commit message does not explain the…

--

r8152: split RTL_VER_17 into QFN68 and QFN100 package variants

This splits RTL_VER_17 into RTL_VER_17_QFN68 and RTL_VER_17_QFN100. The
package is detected by reading PLA_PKG_DET in __rtl_get_hw_ver(), and
parts that cannot be identified are rejected. It also selects a new
rtl8159-2.fw image for QFN100 and adds a QFN68-only u2phy backup-restore
write in r8157_init().

> diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c
> index 3e16d0f832bc3..103d8430da424 100644
> --- a/drivers/net/usb/r8152.c
> +++ b/drivers/net/usb/r8152.c

[ ... ]

> @@ -10223,9 +10253,12 @@ static int rtl_fw_init(struct r8152 *tp)
>  	case RTL_VER_16:
>  		rtl_fw->fw_name		= FIRMWARE_8157_1;
>  		break;
> -	case RTL_VER_17:
> +	case RTL_VER_17_QFN68:
>  		rtl_fw->fw_name		= FIRMWARE_8159_1;
>  		break;
> +	case RTL_VER_17_QFN100:
> +		rtl_fw->fw_name		= FIRMWARE_8159_2;
> +		break;
>  	default:
>  		break;
>  	}

[Severity: Medium]
This changes the firmware that existing QFN100 RTL8159 users load. Before
this patch every 0x2020 chip became RTL_VER_17, so QFN100 parts loaded
rtl8159-1.fw. After it, QFN100 requests rtl8159-2.fw, and nothing falls
back to rtl8159-1.fw.

The commit message only says:

    QFN100 uses a different firmware image from QFN68, so rtl_fw_init()
    selects rtl8159-2.fw for it and keeps rtl8159-1.fw for QFN68.

RTL8159 firmware loading has been in the tree since commit a51e171e176c
("r8152: Add firmware upload capability for RTL8157/RTL8159"). Released
kernels have therefore been applying rtl8159-1.fw to QFN100 parts.

Was that harmful on QFN100? If so, this patch fixes a user-visible bug.
Should the commit message then describe the symptom and carry a Fixes:
tag?

This also adds a dependency on a new linux-firmware blob. If the blob is
missing, rtl8152_request_firmware() only warns:

	if (rc) {
		rtl_fw->fw = ERR_PTR(rc);

		dev_warn(&tp->intf->dev,
			 "unable to load firmware patch %s (%ld)\n",
			 rtl_fw->fw_name, rc);
	}

Commit a51e171e176c says the RTL8159 needs its PHY firmware to work at
speeds above 5GBit. A QFN100 user who upgrades the kernel without
rtl8159-2.fw installed goes from having a PHY firmware patch to having
none, and only sees a warning in the log. Can that drop links above 5G
on QFN100?

Could the commit message mention the new rtl8159-2.fw requirement and
whether it is already in linux-firmware? If rtl8159-1.fw was not harmful
on QFN100, would a fallback to it be worth adding when rtl8159-2.fw
cannot be loaded?

[ ... ]

-- 
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261130063123.2408-1-nic_swsd%40realtek.com
Technical Details
Message-ID: <179610756648.3146.1576349652810734708@kernel.org>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-374751-linux-kernel-netdev=dewy.ru
References: <20261130063123.2408-9-nic_swsd@realtek.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-374751-linux-kernel-netdev=dewy.ru
From: netdev-bot+sashiko@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v10 08/12] r8152: split RTL_VER_17 into QFN68 and
 QFN100 package variants
Date: Tue, 01 Dec 2026 06:46:06 +0000
Organization: Usenet Network
Message-ID: <179610756648.3146.1576349652810734708@kernel.org>
References: <20261130063123.2408-9-nic_swsd@realtek.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1639083"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:qwiJDENX0rc0GGHwDX2oLrxbZ0g= sha256:yw9uF/JYnOQNbX8ZW6pPoagqI7P54m5CmV/mhbQtOcI=
	sha1:+SlHxbWghAVJui1k8vmB0DNwP1Q= sha256:uqRsgL670PPeJKu3beUCI9ZWI3V3AQR+IktpGShsuAk=
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 CCA5B117273; Tue,  1 Dec 2026 09:46:31 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.5
X-Spam-Status: No, score=-3.5 tagged_above=-9999 required=6.31
	tests=[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,
	URIBL_BLOCKED=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 OdNxZfoso9st;
	Tue,  1 Dec 2026 09:46:28 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-374751-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 sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
	by mail.dewy.ru (Postfix) with ESMTPS id 950EB11726B; Tue,  1 Dec 2026 09:46:19 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sto.lore.kernel.org (Postfix) with ESMTP id 63B4460219C; Tue,  1 Dec 2026 06:46:19 +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=1796107569;
	b=d6xeObi9f09bIgd0EZaawOXla/DSmX4bz+qwPiTiUk8tKDtMe01SynJxf+NkSPz3lrgt
	 MQE4Nz0hR7B3oVtKslqla6u98lTgYGqKcNEvN+2Ir8Ik8XxWfhmYSe9pOCa12/WJrgRbZ
	 OqtiXM2tyXS48QPjXCL2zlCidDwabAo+3JU9tMR/63joyRxH6IM7s7h1VYXQ1Q7Cbp5Ys
	 QFMbTvYE+9BMZb/1XCBdoBwWcsdFQXBfHur/tgoxBl3QG7DkW77lcoOBPffK8jzgqNz09
	 AW4ZXp5DMSvCrdXRcYYEP2eEXhFRsrR4Suvis6PPtjWpmAAZI7wbIm6QMqUPDgJLFfQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796107569;
	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=yeMEGpYUmyjzjAu+7HNsiykeRE5Z3SULuf3DMjXHV/w=;
	b=xhjLOSa2u7l7xRDVUKLafQVQKobqG4sOwbFmp4vnFx3buGsISMclNeLVTsiffmWMHoFl
	 9wn6pb0b1vVcLJjMSVAZLoPjdwvxJ6iSlKa956NZ193pW0giFptdx2eMHvby+wnfxw9Jt
	 onRRareA9Abwe1ouW7OSI2jF9DMlGQBgBt7C74CcevBXAKMsaJmKTRxuIMM49QXa4cbtR
	 4IZGp7rj8iQoNZH3vZQ8EM2W5eywvirpT+W48TRqbClrmb9KcONJUxdurExXYoW8sQROl
	 A3fk3US58d3KzNYXHnry6cymiZmmfOAzZDh6W4TxiALGEYkYTt3EBF+Ry1aJaR2B6nw==
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=cg8q3AFo;
	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 05F73606A337;
	Tue,  1 Dec 2026 06:46:09 +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=cg8q3AFo
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=1796107568;
	b=unrrWXxyNz2IQk9xEr26/GP9lUUEbMk23iLe6kfupe5LVkjXP17e5b3T3yCfVS78cQ1z
	 5W6zb963HJoWgAONdU0DmNhitrfhGI3EHEwfxY5jwEEzPo9SzdkgMyP5gnsgy3Pjes+li
	 hjeHtiH5S/aM75v/nlgLWWeh9W/udG7clTok47PPg/CLmxJVvJ7OkkfH4qWHeo+Dftpm4
	 YoFTXVzcbxgGX30Jz6NveftO/478Hu+jqf4CI14y7iJKUKeuyMIa9CDvltjcecIl8dZwl
	 Tq/eghTWPABSlkilSA6tJl6Um3G3WA7ip/5B50skLPmqWrdenaYW6PXAapahzKxuqww==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796107568;
	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=yeMEGpYUmyjzjAu+7HNsiykeRE5Z3SULuf3DMjXHV/w=;
	b=cpec9P96gdm/dCdtFLD6qP/Qg+edjwpN+5+/m7AbcQrTpZZIEIt85ZnL05Ja14unwJcH
	 U5XAVb+lRR1+hT6sJXJd/TMu1Y5Vo8ZIE5x+A3PS+Wr3+84iAYx5MB2TY6/Uv0hgaXIQk
	 VcbLDcGlAPPVwPUkkpAkVVP/rbRcwvkObbgRKKUt8tkM/xA3NlaHAtzXHkCYMWUsSaug3
	 1QoV30MvJ3ep/7Pmi8VlNz4kRnQf+aD6ZUCdjCv/8l9XUpN+t37iDrF/5SW4D83IXB7Qk
	 Pr977syfCC5YuNaf2mubgBTZ2cS/h8gN8Y/dUtbIEyXxXnzQyzqgI59N/E010ipZjxQ==
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=cg8q3AFo;
	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 276D0606A31A;
	Tue,  1 Dec 2026 06:46:07 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id ED20C1F0089C;
	Tue,  1 Dec 2026 06:46:06 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1796107567;
	bh=yeMEGpYUmyjzjAu+7HNsiykeRE5Z3SULuf3DMjXHV/w=;
	h=Subject:From:To:Cc:Date:In-Reply-To:References;
	b=cg8q3AFohsHmvOgSGTVizlhqa3ZUVqQDi2rcjNSmHw+4R7KG5B7DDoZEYlXUMe9WM
	 vLdTgJnlnzL6wmNINqPIkLJmXn+3+KsTFFYnX1D3TYCbRk1yrO3mOuI11NofLsSz8S
	 9PZiuSQi58536eyV3J8PNbQiiatnnHAqVmAahmgE4MNHtoqh6E+cglzsFSuqF+Cl7N
	 cr7sqEZnxEyL87+lDcWf+W2BOGbOm7LTQhV1YayI9yPwYNweWPFqA145FqmD7J4HXX
	 IJfIkw2HV9UB2O8M2m+NIqB7Iz/+OgSKZSDJHGUGEZ0XoqGptsZWOakAQKJz/8llc3
	 LfULGeE9p5qKQ==
X-Cc: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org,
 nic_swsd@realtek.com, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org,
 edumazet@google.com, bjorn@mork.no, pabeni@redhat.com, andrew+netdev@lunn.ch,
 mail@birger-koblitz.de
X-In-Reply-To: <20261130063123.2408-9-nic_swsd@realtek.com>
X-sashiko-severity: Medium
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