Article View: linux.kernel.netdev
Article #23330Re: [PATCH net-next v9 02/12] r8152: add rtl8157_unload() for RTL8157 and RTL8159
From: netdev-bot+sashiko
Date: Fri, 27 Nov 2026 04:27
Date: Fri, 27 Nov 2026 04:27
58 lines
10106 bytes
10106 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] Commit "r8152: add rtl8157_unload() for RTL8157 and RTL8159" has
two Fixes: tags (fd3c7d080df5, ad2a55b63b41), but its onlyβ¦
--
r8152: add rtl8157_unload() for RTL8157 and RTL8159
This patch gives RTL8157 and RTL8159 their own rtl8157_unload()
callback. The callback uses r8157_power_cut_en() instead of
r8153_power_cut_en(). The 0xcf04 Interrupt Mitigation clear moves from
rtl8153_unload() into the new function.
> RTL8157 and RTL8159 used rtl8153_unload(), which disables power cut
> with r8153_power_cut_en(). Per the datasheet they need
> r8157_power_cut_en(), which r8156_init() already calls for them.
[Severity: Low]
This patch carries two Fixes: tags. The only reason given is "Per the
datasheet they need r8157_power_cut_en()". Could the commit message say
what goes wrong for users when RTL8157 and RTL8159 use the old
rtl8153_unload()?
The unload callback runs from rtl8152_disconnect() on unbind or module
removal. It also runs from the out1 error path in rtl8152_probe_once().
Where does the problem show up? For example, is it on re-bind, with a
fallback class driver, or in the device's power state after unbind?
The commit message also leaves out the register changes. The old path
cleared both bits in USB_POWER_CUT:
r8153_power_cut_en(tp, false)
ocp_word_clr_bits(tp, MCU_TYPE_USB, USB_POWER_CUT,
PWR_EN | PHASE2_EN);
ocp_word_clr_bits(tp, MCU_TYPE_USB, USB_MISC_0, PCUT_STATUS);
The new path leaves PHASE2_EN unchanged. It also clears USB_MISC_2
BIT(1), which the old path never touched:
r8157_power_cut_en(tp, false)
ocp_word_clr_bits(tp, MCU_TYPE_USB, USB_POWER_CUT, PWR_EN);
ocp_word_clr_bits(tp, MCU_TYPE_USB, USB_MISC_0, PCUT_STATUS);
ocp_byte_clr_bits(tp, MCU_TYPE_USB, USB_MISC_2, BIT(1));
Could the commit message describe these register differences and the
user-visible impact? Documentation/process/submitting-patches.rst asks
for both in fixes.
--
Sashiko AI review Β· https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261126033211.51850-1-nic_swsd%40realtek.com
Technical Details
Message-ID:
<179575362138.3135.2071411045899794230@kernel.org>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-372449-linux-kernel-netdev=dewy.ruReferences:
<20261126033211.51850-3-nic_swsd@realtek.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-372449-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v9 02/12] r8152: add rtl8157_unload() for RTL8157 and RTL8159 Date: Fri, 27 Nov 2026 04:27:01 +0000 Organization: Usenet Network Message-ID: <179575362138.3135.2071411045899794230@kernel.org> References: <20261126033211.51850-3-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="637305"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:HJsmp3tSKVRSzslrRnfGSLhtjzk= sha256:bg0xO6B92wGQyJWIZe2TF7nCE9Mk6BkK8qNzqTJmjDY= sha1:GJcVrn/WQQWT2+DcAPXn/Pwje7w= sha256:fTib3tUjR0W5pdwwjw02fwcGc90vvZzC0tz9QH1YNGk= 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 CC5FA125F0F; Fri, 27 Nov 2026 07:27:38 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -2.301 X-Spam-Status: No, score=-2.301 tagged_above=-9999 required=6.31 tests=[DCC_CHECK=1.1, 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 PlN_9BFMva1I; Fri, 27 Nov 2026 07:27:35 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-372449-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 08E56125F0D; Fri, 27 Nov 2026 07:27:25 +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 E88DE37997; Fri, 27 Nov 2026 04:27:10 +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=1795753628; b=MIlZJo6qBz/Ff8EZ1Vcd42MkeDVyL+w6Tb4cyq9Xr5ZOk+lj+YZLa5JxhEPdbRoi0C6q epJ9l3tK3z33qbOSuWqovI+srJWitobYBtLchCPSkOf5srZ8A3Njkj9DEmrnUCv/vC3rd AGHe555BDBLmIyZN6+IJnUuQ7x+52GaJ9n3RfdReLUnmV6nGxfyUyC7CD21xxYKh+Vjs0 XtkIZbr1m2SPhVbSAFHW1MdFW2y6jrUX2spFLAirVGUbhljqSOJhI9GzGL/9pOg0pyU9t 7y2DtjB4TwRyV7gUVDvKYAUn4epA8G3LKM5jcA/BL1lE78iPCs25400qpSvBbLPj8Jg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795753628; 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=zJKuJ7vg9PpqIh/0IWbImhEqiaev0DXuAD3r2o7D1ow=; b=B5WMFyOq2nmhgPLInIlMnALHaBYlw+9+y9GgL4PHvf2OazLS5e5utWN0On40uL+OElQ1 q88AZ1sNEf3jWkbmttTvGEJiIbe8/IicNQuiaXgTutKgLax+kKXr5a3rc3tLnXIlYx9X4 7Qfvf6TNeNg1tgVsB9S+jqq0e7IQWpfHTw14nzgFXTN1+wuWvi5bUtv41bYe9C2gkIdum oAx0eUfEOsjrxoHgKBQ9V6ZV5VJkQh7raN5pAGHOYye+sar7yXuM8m2utrq8tPWj+3XxK 3BFOOK/wzcfUwxgilctLTFaHvf1vCn2rTVceeBY2VLq69e9z3O8PfHzQxJ5FJ+YiLDg== 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=K8laFION; 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 ACB9C606A687; Fri, 27 Nov 2026 04:27:08 +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=K8laFION 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=1795753622; b=ff7DZ3YL+TOiDaG94/cYv3KGxDsbS+ZMWJLIoYWQXLkbMk7lD2yZSfC+SFFrGanMbkoO vXffOW9MDFWX6iF2a6Bjpx+yx/Z+vwiFv3o22CXCzahuUdvnI66ru7/yBxQ7VKecf8lt9 U7g9xDg3V5ZsZJhsWiuSKzV0afmuUevA3jiT/6KeeIRxgUULBDZI13TQjouAPLEncc+VZ dArhHdqnF12HDLD+UIR0ttzLmKdjJdrRO6y0s6CMJGq6gPf0BOyQTUsfW6PCRG4hw06h4 H4aTWDfFwXC23HUrVfH/p6Ml1DrwDQ3E2N/ou5cbzkI4ukAwUphy50j+0EPmdLwurZA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795753622; 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=zJKuJ7vg9PpqIh/0IWbImhEqiaev0DXuAD3r2o7D1ow=; b=FMmrM5i9JtWUeOo5o0uqPq2iYM6Yo9UGY4vNtg3xc1EO5Tx21ryrxOUhKXRcXFCDBDi0 mkgVPO/gQ89EGt9oXhnDx0t2CQiOrukt//gjEagMv0668/a/6km/kXGasI2TsGyGExayO GdUXgxg4rCovLGp/pCKICoRuaLjTEwePhck+tH0qFz1XbxjbV2U/nddYgCBF25rvGeT79 ifyXRDL8AmKxprhQqq1nIgZRRtGkbApkEvtf0WXNhwCU8qHhDJJmq2p48Hq9eCLuP6yZg PuwHARggN8g+gntco6VeOhP22qVeLgrjJLxIx6jmxP2/ADEDW+l/4RyL5Xqg5BYRK/w== 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=K8laFION; 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 CD6A9606A32F; Fri, 27 Nov 2026 04:27:02 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id D8CC21F00893; Fri, 27 Nov 2026 04:27:01 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795753622; bh=zJKuJ7vg9PpqIh/0IWbImhEqiaev0DXuAD3r2o7D1ow=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=K8laFIONL2n0Djtz3VSa3NqwackBnfRkpV5/VRrPB+bv/B5Ln2xWnkf8Ix9lTWBVu jHuJ04Y7V16fwynInsixFnSQeUxMG+HO6D7sl4Kq1pEtCfSyBDCisYiHxlhGuSzVZn FQHkYXwmwCRUc8wMCZ4FgyyX8ZApFhMGy4Qymq8UYlmaNc1Hfj70nGGffJ+gxWK5p/ HJM/FmUqUBE6P9xWxw/tlRfJ9e4xwdwksIoUiwPIH/2ccJZfRw5R6JEol251BxJd9Y G7Rv5Zvq5JOH4xtT25I6ZKr6rCnj31hV2BhD59tXnPIeEDDsH8iw00J8RqL5/pt3rD trpCx/yN3YtbA== 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: <20261126033211.51850-3-nic_swsd@realtek.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