Article View: linux.kernel.netdev
Article #23413RE: [PATCH net-next v9 11/12] r8152: add TGPHY register access for RTL8157 and RTL8159
From: Chih Kai Hsu
Date: Fri, 27 Nov 2026 08:38
Date: Fri, 27 Nov 2026 08:38
198 lines
25211 bytes
25211 bytes
> Thank you for your contribution! Sashiko AI review found 6 potential
> issue(s) to consider.
>
> Critical: 0 · High: 0 · Medium: 1 · Low: 5
>
> 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] set_carrier() now returns early when the BMSR read fails, and
> the link-change event is lost.
> - [Low] rtl_tgphy_access() reports a write as successful once the command
> has been posted.
> - [Low] Two statements in the commit message are not quite right.
> - [Low] read_mii_word() now returns 0 for a failed PHY read, and the MII
> library callers in drivers/net/mii.c take that 0 as real register…
> - [Low] rtl_tgphy_access() relies on the comment 'A failed control
> transfer latches RTL8152_INACCESSIBLE' and ignores the return values…
> - [Low] After writing BMCR_RESET, rtl8152_set_speed() polls BMCR for up
> to 50 x 20 ms, but the new loop stops on the first failed read: `if…
>
> --
>
> r8152: add TGPHY register access for RTL8157 and RTL8159
>
> This patch adds a TGPHY command channel for PHY register access on
> RTL8157/RTL8159 and routes ocp_reg_read()/ocp_reg_write() through new
> per-chip rtl_ops.phy_read/phy_write hooks. The PHY accessors and helpers now
> return int, and a number of callers are changed to act on a failed access.
>
> > - read_mii_word() reports a failed read as 0, because the MII library
> > takes the return value for register content. A TGPHY timeout
> > returned as an errno would look like a BMCR with autonegotiation
> > enabled, and mii_nway_restart() would write it back; with 0 it
> > returns without writing. -ENODEV for an inaccessible device is
> > still returned, as the writes that follow are blocked then.
>
> [ ... ]
>
> > Older chips are unaffected, as r8152_phy_read() always succeeds.
>
> [Severity: Low]
> Is this last statement accurate? A few paths also change on the OCP-path chips.
>
> In r8156_hw_phy_cfg() for RTL_VER_11, the 0xd068 PHY read now always runs,
> and it runs before the MID_REVERSE test. Before, it only ran when
> MID_REVERSE was set:
>
> ocp_reg_read(tp, 0xd068, &data);
> if ((ocp_read_word(tp, MCU_TYPE_USB, USB_UPS_CFG) & MID_REVERSE)
> &&
> (data & BIT(1))) {
>
> rtl8152_set_pauseparam() now reads BMCR even when pause->autoneg is 0.
>
> rtl_pre_ram_code() now returns the errno from rtl_phy_patch_request() instead
> of always returning -ETIME. rtl_phy_patch_request() now also tries a release on
> the -ENODEV path.
>
> None of these look harmful. Should the commit message mention them?
>
> In the read_mii_word() bullet, -ENODEV is only still returned by the
> test_bit(RTL8152_INACCESSIBLE) check at entry. If the device becomes
> inaccessible during the access, r8152_mdio_read() returns -ENODEV and
> read_mii_word() turns it into 0:
>
> return ret < 0 ? 0 : ret;
>
> Could the wording be changed to match the code?
>
> > diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index
> > 2f3d97e2400c3..e6a5d35403a28 100644
> > --- a/drivers/net/usb/r8152.c
> > +++ b/drivers/net/usb/r8152.c
>
> [ ... ]
>
> > @@ -1822,7 +1866,10 @@ static int read_mii_word(struct net_device
> > *netdev, int phy_id, int reg)
> >
> > ret = r8152_mdio_read(tp, reg);
> >
> > - return ret;
> > + /* The MII library takes the return value for register content,
> > + * so a failed read must not be passed on as an errno.
> > + */
> > + return ret < 0 ? 0 : ret;
> > }
>
> [Severity: Low]
> With a failed read reported as 0, the MII library callers in drivers/net/mii.c treat
> it as real register content.
>
> mii_nway_restart() sees BMCR_ANENABLE clear and returns -EINVAL. On
> RTL8157/RTL8159, a TGPHY timeout on that BMCR read therefore reaches
> userspace as -EINVAL from rtl8152_nway_reset() (ethtool -r). The same happens
> in rtl_ethtool_set_eee(), after eee_set() has already written the EEE registers.
>
> mii_ethtool_get_link_ksettings() returns void. With BMCR=0 it reports
> AUTONEG_DISABLE with SPEED_10/DUPLEX_HALF, and BMSR=0 gives
> SPEED_UNKNOWN.
> It also overwrites mii->full_duplex.
>
> In rtl8152_get_link_ksettings(), the new OCP_10GBT_CTRL/STAT reads
> propagate the error. If only the MII library reads fail, though, the function
> returns 0 with made-up link settings. Is this split intended?
>
> The commit message explains the 0 mapping for mii_nway_restart(). It does not
> mention the misleading -EINVAL or the get_link_ksettings output.
>
> [ ... ]
>
> > +static int rtl_tgphy_access(struct r8152 *tp, u16 addr, u16 *data,
> > +bool write) {
> > + u16 cmd = 0;
> > + int ret;
> > +
> > + ret = wait_tgphy_cmd_ready(tp);
> > + if (ret < 0)
> > + goto out;
> > +
> > + if (write) {
> > + cmd |= TGPHY_CMD_WR;
> > + ocp_write_word(tp, MCU_TYPE_USB, USB_TGPHY_DATA,
> *data);
> > + }
> >
> > - return data & clear;
> > + ocp_write_word(tp, MCU_TYPE_USB, USB_TGPHY_ADDR, addr);
> > +
> > + cmd |= TGPHY_CMD_BUSY;
> > + ocp_write_word(tp, MCU_TYPE_USB, USB_TGPHY_CMD, cmd);
> > +
> > + if (!write) {
> > + ret = wait_tgphy_cmd_ready(tp);
> > + if (ret < 0)
> > + goto out;
> > +
> > + *data = ocp_read_word(tp, MCU_TYPE_USB,
> USB_TGPHY_DATA);
> > + }
>
> [Severity: Low]
> For a write, the only busy wait happens before the command is issued. Once
> DATA/ADDR/CMD have been posted, ret is still 0. If the busy bit never clears for
> that write, the function still returns 0. The -ETIMEDOUT is then reported by
> whichever TGPHY access comes next.
>
> The commit message says rtl8152_set_speed() updates the cached
> speed/duplex state only once the final BMCR write succeeds. When PHY_RESET
> is not pending, nothing reads the PHY after that write. So
> tp->ups_info.speed_duplex, tp->mii.full_duplex and tp->mii.force_media
> are committed even if the PHY never took the write. SIOCSMIIREG in
> rtl8152_ioctl() now also returns this status to userspace.
>
> ocp_adv_write() uses the same posted-write pattern, so this may be the
> intended hardware protocol.
>
> Should the write path wait for TGPHY_CMD_BUSY to clear after posting the
> command? If not, should it be documented that write success only means the
> command was issued?
>
> > +
> > +out:
> > + /* A failed control transfer latches RTL8152_INACCESSIBLE */
> > + if (!ret && test_bit(RTL8152_INACCESSIBLE, &tp->flags))
> > + ret = -ENODEV;
> > +
> > + return ret;
> > +}
>
> [Severity: Low]
> Is this comment true for every failed transfer? r8152_control_msg() returns
> -ENODEV early, without setting the flag:
>
> if (ret == -ENODEV)
> return ret;
>
> generic_ocp_read() and generic_ocp_write() then call rtl_set_unplug(). That
> function only latches the flag once the USB core has marked the device
> detached:
>
> static void rtl_set_unplug(struct r8152 *tp)
> {
> if (tp->udev->state == USB_STATE_NOTATTACHED)
> rtl_set_inaccessible(tp);
> }
>
> get_registers()/set_registers() can also return -ENOMEM on an allocation failure
> without touching the flag.
>
> In these cases a DATA/ADDR/CMD write can be dropped, or the final
> USB_TGPHY_DATA read can return 0xffff. For -ENOMEM it can return an
> uninitialised value from the local tmp in ocp_read_word(). Either way,
> rtl_tgphy_access() still returns 0.
>
> This is no worse than the OCP path. Still, do the comment and the commit
> message ("returns an errno (-ENODEV if the device is inaccessible)") overstate
> what is detected here?
>
> [ ... ]
>
> > if (bmcr & BMCR_RESET) {
> > int i;
> >
> > for (i = 0; i < 50; i++) {
> > msleep(20);
> > - if ((r8152_mdio_read(tp, MII_BMCR) &
> BMCR_RESET) == 0)
> > + ret = r8152_mdio_read(tp, MII_BMCR);
> > + if (ret < 0 || !(ret & BMCR_RESET))
> > break;
> > }
> > +
> > + /* The new settings are already applied and cached. */
> > + ret = 0;
> > }
>
> [Severity: Low]
> Does a single failed read here end the reset wait early? On RTL8157/RTL8159, a
> TGPHY -ETIMEDOUT breaks out of the loop as if BMCR_RESET had cleared, and
> ret is then forced to 0. Callers such as
> rtl_hw_phy_work_func_t() then continue PHY setup while the PHY may still be
> in reset.
>
> r8153_phy_status() in this patch treats a failed read as not ready and keeps
> polling. Would it be more consistent to stop here only on -ENODEV, and keep
> polling on a timeout?
>
> The commit message says a failed read is not reported. It does not say that the
> read also ends the wait.
>
> [ ... ]
>
> > @@ -7240,8 +7480,13 @@ static void set_carrier(struct r8152 *tp) {
> > struct net_device *netdev = tp->netdev;
> > struct napi_struct *napi = &tp->napi;
> > + int bmsr;
> >
> > - if (r8152_mdio_read(tp, MII_BMSR) & BMSR_LSTATUS) {
> > + bmsr = r8152_mdio_read(tp, MII_BMSR);
> > + if (bmsr < 0)
> > + return;
> > +
>
> [Severity: Medium]
> Can this lose the link change event? rtl_work_func_t() has already
> consumed the flag before it calls set_carrier():
>
> if (test_and_clear_bit(RTL8152_LINK_CHG, &tp->flags))
> set_carrier(tp);
>
> On a link down, intr_callback() has also already stopped the queue:
>
> if (netif_carrier_ok(tp->netdev)) {
> netif_stop_queue(tp->netdev);
> set_bit(RTL8152_LINK_CHG, &tp->flags);
> schedule_delayed_work(&tp->schedule, 0);
> }
>
> Suppose the BMSR read then times out on RTL8157/RTL8159 in
> rtl_tgphy_access(). Neither the netif_carrier_off() path nor
> netif_wake_queue() runs, and RTL8152_LINK_CHG is not set again.
>
> The netdev then keeps the carrier on with the TX queue stopped. This lasts
> until another interrupt shows a mismatch, or until the TX watchdog calls
> rtl8152_tx_timeout(). A link up can be missed the same way.
>
> Could this error path set RTL8152_LINK_CHG again and reschedule
> tp->schedule? The LINK_STATUS branch at the end of set_carrier() already
> does that.
Yes, I will set the flag again and reschedule the work.
>
> > if (bmsr & BMSR_LSTATUS) {
> > if (!netif_carrier_ok(netdev)) {
> > tp->rtl_ops.enable(tp);
> > netif_stop_queue(netdev);
>
> [ ... ]
>
> --
> Sashiko AI review ·
> https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261126033211.51850-1
> -nic_swsd%40realtek.com
Best Regards,
Chih-Kai
Technical Details
Message-ID:
<6e8e41c3cbe44b1e9bebb570179597dd@realtek.com>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-372543-linux-kernel-netdev=dewy.ruReferences:
<20261126033211.51850-12-nic_swsd@realtek.com> <179575362702.3135.11502039200918587671@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-372543-linux-kernel-netdev=dewy.ru From: hsu.chih.kai@realtek.com (Chih Kai Hsu) Newsgroups: linux.kernel.netdev Subject: RE: [PATCH net-next v9 11/12] r8152: add TGPHY register access for RTL8157 and RTL8159 Date: Fri, 27 Nov 2026 08:38:41 +0000 Organization: Usenet Network Message-ID: <6e8e41c3cbe44b1e9bebb570179597dd@realtek.com> References: <20261126033211.51850-12-nic_swsd@realtek.com> <179575362702.3135.11502039200918587671@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Injection-Info: usenet.network; logging-data="685002"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:gnnfrVAJzHZ0CxLl18V6Hd0tWls= sha256:V6ZfPP3fLQqC3xfzMVhRCW2tb19otivC33auhT07PLQ= sha1:840fn4MWwpfpe50ulgK4I+NWXAQ= sha256:KTJmxW0MnHvNFSH56fQihzBf5Ri+rYlO10b/PwirxCY= Content-Language: zh-TW 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 F0E28125F28; Fri, 27 Nov 2026 11:39:36 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -2.051 X-Spam-Status: No, score=-2.051 tagged_above=-9999 required=6.31 tests=[DCC_CHECK=1.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, 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=realtek.com 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 RMOAaWjNzG_z; Fri, 27 Nov 2026 11:39:33 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-372543-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=realtek.com X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mail.dewy.ru (Postfix) with ESMTPS id F1129125F25; Fri, 27 Nov 2026 11:39:24 +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 2F1C8602E5C; Fri, 27 Nov 2026 08:39:23 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=fail; t=1795768758; b=lMGvqUwX8hRCEu5lhhqOSVnKlGnxknNkEcuhyxWKkA3v20IkCvEROvkiNkxUbPgMDkZh yT2IGFm9lQrcNnjB1xgeiFAyEIanyjNvxrWjqpmnhyPugGopQJgtoelLb1H5lbw+cC5t3 b3pA2Cl0mO3J81y+iFqcfE9BmL8L2XLhpy06lp/5aqTDhSJT32A7VHJ626yNP1e4QK3X5 E2++XZppCxorREYdH1vKc/+97tUnBjirY8R5qD8BlYifmOpYWrnMVbNp0QFzHrPqTkpRO D39QHwSZO/lNuGf3HuYAhbHXzwutFuTbN6B2SWExDYWEiQ/CVjk2OvTL956d20bbGEQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795768758; h=X-Original-To:Received:DMARC-Filter:X-SpamFilter-By:DKIM-Signature: Received:Received:Received:Received:From:To:CC:Subject:Thread-Topic: Thread-Index:Date:Message-ID:References:In-Reply-To:Accept-Language: Content-Language:Content-Type:Content-Transfer-Encoding: X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version; bh=FZ4DdQuK0tuNEBannjD6V5DBdbUT0JiTKjYmwy9Qmf8=; b=RBF15MFDj1yWagOTcU3MHW7MJSNOeVDANLb2rjrBaP7uENq+f6n0ZpYfAvDjIoGD5jLl jVwbVjDFLIfpU8s52MALIdZYGtlkuF11/Qf7/BAW1pOGVVZwrqcF+OGRBFb/w+wxc2bDT p3K/d1t2bsvzsHNczVD9ecsyCMd2nqdBIk7E5/CuBpW95L4DZVjJf50JxeZKXTD88BJki G0K89us51vkGv5jSI5DcDuIzYUOKdFAHaMrLl3ks9VMIoEV003H1zMaprIcp7iCyCinn3 fWxiSY+3fe5sY3aPMqRsgh7MN+cwx15PXJEDUX0gPkQikz+hPntviNxqY7XBSUUVShA== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=realtek.com header.i=@realtek.com header.a=rsa-sha256 header.s=dkim header.b=auEIVGuQ; dmarc=pass header.from=realtek.com; spf=pass smtp.mailfrom=realtek.com; arc=fail 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 37970606A336; Fri, 27 Nov 2026 08:39:18 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=realtek.com header.i=@realtek.com header.a=rsa-sha256 header.s=dkim header.b=auEIVGuQ X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=211.75.126.72 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795768757; b=y2ghBlcoU3B8YV2hd5D99M3I+chaLx+gis2kUxGodilh6yl5FMoT0UyilYjeV9pKNMTd MzKi1RYjBnGNpS2q3pFi1FyIh+qi19gi8BsTtYcRApRpaLC7BKZXsbKUivdzZIv6LZzmB 26WHxJVAFvLRD9reay8O6C+5kfxegmeVMx/7/uuPrpTinJYJMwXgVEckKbRQAk9rxjq5w 9++y5/3HGhKLiQiBuoBw8UcZMir8eHsE7/gl+xiBiLOAmTvaq9af/wO7pALW1B+SKhZZs c10IFJVpCrlCuzvGwRpD0i+jgbrvLL2UPpeED0JtClIkN3K7QHmg2pXfRzzea7jgiMA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795768757; h=DMARC-Filter:X-SpamFilter-By:DKIM-Signature:Received:Received: Received:Received:From:To:CC:Subject:Thread-Topic:Thread-Index:Date: Message-ID:References:In-Reply-To:Accept-Language:Content-Language: x-originating-ip:Content-Type:Content-Transfer-Encoding:MIME-Version; bh=FZ4DdQuK0tuNEBannjD6V5DBdbUT0JiTKjYmwy9Qmf8=; b=gKv/KjLLbcJEbnBNibHR4K0qliKAIY+nAQNXfNHhbcPOl898y2uHCh7Kge0s+hfpOUr6 2xLRm2h4zUUWKFHiYwO+ghcP2wb/pbH4QZydPY7m0GqrdiS8jMzNQ5p4wRyAB67dNeXzU gRi+OR+ijSswJjbu5CeokNQj7MH92qQiZ5GrCeYITlJrXC3sGKpBEOy6GyFrOuU8LNKyD utZFNgyKAj561Sc0LD9Gsi3iAPgwyuFJ9XA0hBvr8+IG2jMvAGXz1cIlNqO/JruRTiYqb hNgBIQfYWERrk6eDVVtCpgmJnzCNPbhaXDkeo8ZuE1i/BmDAanW14GuwB0wEMlQltCA== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=realtek.com; spf=pass smtp.mailfrom=realtek.com; dkim=pass header.d=realtek.com header.i=@realtek.com header.a=rsa-sha256 header.s=dkim header.b=auEIVGuQ; arc=none smtp.remote-ip=211.75.126.72 X-Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A2238606A31C; Fri, 27 Nov 2026 08:39:16 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A2238606A31C X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=realtek.com X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=realtek.com X-SpamFilter-By: ArmorX SpamTrap 5.80 with qID 6AR8cgObB783117, This message is accepted by code: ctloc85258 X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=realtek.com; s=dkim; t=1795768722; bh=FZ4DdQuK0tuNEBannjD6V5DBdbUT0JiTKjYmwy9Qmf8=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:Content-Transfer-Encoding:MIME-Version; b=auEIVGuQkagiHEsrGTKwDsMaTEaxAnHPS8wgSC15FH7ZWsAXPDgnQppGOOai1Gv52 51RMlBOL9fF7TxnmTxqMJ8TUlfiRYZl5UnRQkA3IrtAka/IICGp6XFfjWTWWE10u60 9Hk1/PXh5mCgq5zhWhOaJpbMW9k2bbS/8oVCkLnBkke05WV8QXU6W2vAlhz7h47iUC VgVpW0axuwFvq9SDeGv/UxQMw91yihl2LCth09nmcOTAQmppZp4YHPuLxyVX1jVhvD /dSaDW8GNziDeNxg08iLWDH1aBOic8HjBqyCc5hVlDeBdsUGBdbp1HXuJrHf/3ukK/ oJ7CWS32mXVzA== X-Received: from mail.realtek.com (rtkexhmbs04.realtek.com.tw[10.21.1.54]) by rtits2.realtek.com.tw (8.15.2/3.29/5.94) with ESMTPS id 6AR8cgObB783117 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 27 Nov 2026 16:38:42 +0800 X-Received: from RTKEXHMBS01.realtek.com.tw (172.21.6.40) by RTKEXHMBS04.realtek.com.tw (10.21.1.54) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.56; Fri, 27 Nov 2026 16:38:42 +0800 X-Received: from RTKEXHMBS06.realtek.com.tw (10.21.1.56) by RTKEXHMBS01.realtek.com.tw (172.21.6.40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.56; Fri, 27 Nov 2026 16:38:41 +0800 X-Received: from RTKEXHMBS06.realtek.com.tw ([fe80::eeeb:c765:ca73:5eef]) by RTKEXHMBS06.realtek.com.tw ([fe80::eeeb:c765:ca73:5eef%10]) with mapi id 15.02.2562.056; Fri, 27 Nov 2026 16:38:41 +0800 X-CC: "davem@davemloft.net" <davem@davemloft.net>, "kuba@kernel.org" <kuba@kernel.org>, "netdev@vger.kernel.org" <netdev@vger.kernel.org>, nic_swsd <nic_swsd@realtek.com>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, "linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>, "edumazet@google.com" <edumazet@google.com>, "bjorn@mork.no" <bjorn@mork.no>, "pabeni@redhat.com" <pabeni@redhat.com>, "andrew+netdev@lunn.ch" <andrew+netdev@lunn.ch>, "mail@birger-koblitz.de" <mail@birger-koblitz.de> X-Thread-Topic: [PATCH net-next v9 11/12] r8152: add TGPHY register access for RTL8157 and RTL8159 X-Thread-Index: AQHdfVa8DvsXbZePMEGJW4JliPL1lLdAzlWAgADL38A= X-In-Reply-To: <179575362702.3135.11502039200918587671@kernel.org> X-Accept-Language: zh-TW, en-US 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