Article View: linux.kernel.netdev
Article #3447[PATCH net v2] net: phy: realtek: restore RTL8211F RGMII delays on resume
From: Karl Mehltretter
Date: Thu, 15 Oct 2026 04:50
Date: Thu, 15 Oct 2026 04:50
62 lines
10559 bytes
10559 bytes
RTL8211F and RTL8211F-VD both use rtl8211f_config_rgmii_delay() during
initialization and share rtl821x_resume(). The RTL8211F-VD loses its
RGMII TX and RX delay enable bits across a software power-down, but the
shared resume path only clears BMCR_PDOWN and waits for the receive clock
to stabilize.
On a BeagleV Ahead configured for rgmii-id, carrier and the negotiated
speed return after an interface close/open, but the receive path does not
work. At 100 Mbit/s no frames were received. At 1000 Mbit/s all 11
observed frames had CRC errors.
Reapply the RGMII delay configuration after the existing resume delay.
Tested on a BeagleV Ahead with an RTL8211F-VD at 100 and 1000 Mbit/s,
including close/open without a link partner.
Fixes: bb726b753f75 ("net: phy: realtek: add support for RTL8211F(D)(I)-VD-CG")
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Assisted-by: LLM
Signed-off-by: Karl Mehltretter <kmehltretter@gmail.com>
---
v2:
- Move the shared RTL8211F/RTL8211F-VD resume-path explanation earlier.
- Add Andrew's Reviewed-by.
v1: https://lore.kernel.org/netdev/20261014033659.95196-1-kmehltretter@gmail.com/
Hardware test results on BeagleV Ahead (RTL8211F-VD, rgmii-id):
baseline patched
100 Mbit/s close/open RX silent pass
1000 Mbit/s close/open 11/11 CRC errors pass
no-link close/open, reconnect 15/15 CRC errors pass
The patched kernel also passed bidirectional 1 MiB SHA-256 transfers at
100 and 1000 Mbit/s and eight consecutive 1000 Mbit/s close/open cycles,
all without RX CRC errors. An s2idle suspend/resume test passed on both
kernels and did not reproduce the bug.
Testing on an RTL8211F (non-VD) would be welcome.
Built with ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu- LLVM=1.
drivers/net/phy/realtek/realtek_main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/phy/realtek/realtek_main.c b/drivers/net/phy/realtek/realtek_main.c
index 177b62a7b2d16..c867e5213216b 100644
--- a/drivers/net/phy/realtek/realtek_main.c
+++ b/drivers/net/phy/realtek/realtek_main.c
@@ -1375,7 +1375,7 @@ static int rtl821x_resume(struct phy_device *phydev)
msleep(20);
- return 0;
+ return rtl8211f_config_rgmii_delay(phydev);
}
static int rtl8211f_resume(struct phy_device *phydev)
--
2.39.5 (Apple Git-154)
Technical Details
Message-ID:
<20261015045001.83986-1-kmehltretter@gmail.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-346533-linux-kernel-netdev=dewy.ruShow 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-346533-linux-kernel-netdev=dewy.ru
From: kmehltretter@gmail.com (Karl Mehltretter)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net v2] net: phy: realtek: restore RTL8211F RGMII delays on resume
Date: Thu, 15 Oct 2026 06:50:01 +0200
Organization: Usenet Network
Message-ID: <20261015045001.83986-1-kmehltretter@gmail.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="2451603"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:pVoycFKa3l0HXrcRZXHR9xRsavY= sha256:ThSM5+akQnwgf2g6zUr3sbYd5zjpG4d75AbHeXcVVqU=
sha1:DWn0R6LHIt49gol2sXkPKYioI4A= sha256:2EjaSFU6dDeVErKKj+RY7/o3K8bcNxcDu9Ypm+XufAs=
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 DF98F11023E; Thu, 15 Oct 2026 07:50:46 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -0.748
X-Spam-Status: No, score=-0.748 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001,
FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25,
MAILING_LIST_MULTI=-1, 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=gmail.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 a5H9NVGxCnmO;
Thu, 15 Oct 2026 07:50:39 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-346533-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by mail.dewy.ru (Postfix) with ESMTPS id 619E91101E6; Thu, 15 Oct 2026 07:50:30 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
by sea.lore.kernel.org (Postfix) with ESMTP id 6A9173840A; Thu, 15 Oct 2026 04:50:27 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id D96703314C3;
Thu, 15 Oct 2026 04:50:25 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="qX9JESsg"
X-Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54])
(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5697E2E7366
for <netdev@vger.kernel.org>; Thu, 15 Oct 2026 04:50:24 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.54
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
t=1792039825; cv=none; b=iBE2R258upyb83L6PxGxiQv8pBDOTU5brHHfgj/TWc1wG8L7O0T397c0FG2AGLx9bmUAuo+S93iUNX0hLk7ehsu/C26AHl0N4aGXanlR4rIQzZHFjvqSKJI/hDDCHtJo2Ut7g3yXlzBTVHOKaHERWiv5suV8S8KLHCawwGpSMlY=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
s=arc-20240116; t=1792039825; c=relaxed/simple;
bh=VZ3Tr2gFB2e6AncKRZFku5qMT3/qdFawvSt1vkMJhWs=;
h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=qUiOBHPv6Bc6IdgUWlRrmW/Svzl7XXuKSsSVMqUo5HFZDAtAlO9KXn2XkDi3Rfh+shu5VTkwo050KKt8/vekp3YTjxz3EJakyzB4ISWY6ilmPiwIEvk8RMewEFBIL3jZ3mAJ3HJQBJ0wtXtNfBjJB2c+TyjLIN7Zq+4TVeQKh4Q=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=qX9JESsg; arc=none smtp.client-ip=209.85.221.54
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-wr1-f54.google.com with SMTP id ffacd0b85a97d-48b001cd92bso649308f8f.2
for <netdev@vger.kernel.org>; Wed, 14 Oct 2026 21:50:24 -0700 (PDT)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20251104; t=1792039822; x=1792644622; darn=vger.kernel.org;
h=content-transfer-encoding:mime-version:message-id:date:subject:cc
:to:from:from:to:cc:subject:date:message-id:reply-to:content-type;
bh=qZeTuZ/4qQQoQ+0qzys9AulwqpOfOPP73+MEdMRLt/A=;
b=qX9JESsgvezlEjZyV6FYO0FazvA7RN1/EqBBrae/pVjkquCTR+zKSWlJ0LZouKFm6T
hzWKy/7ljk7jYCXEU1AyO1EsXOrOwrqKn+eBKry24VkpvOGx/B5gS5wpGNH41AynWj6c
LgUlVlNOrhPs9i0dnhObDXbruYz9OUbjqxNjN+0NHy1O9cTcwiCKhGXIzY2OtvzaGYXR
mpC+wBrFEQw+HEf5lnA7PF38xzGGqf1KcQ9q/QWop8fhefag1EmUYUofFhHb/AMgmC90
w9e45za83XXoLEGb37uANYX3Kt58HPZMFaX71crDwKZ1sfp+Pe09xmM78oLBw8zf1XOJ
CNWg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1792039822; x=1792644622;
h=content-transfer-encoding:mime-version:message-id:date:subject:cc
:to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=qZeTuZ/4qQQoQ+0qzys9AulwqpOfOPP73+MEdMRLt/A=;
b=xe82bTwYKZ8pUBTEZL9lD/f0IE5QKxkVGvZkks6Z7o+2e2JDB0LOa3VIJ0Jh17FPbr
0Hg5Y8yesvVDDCO0PPFFnCR9a0jnTSD3SNH2Uc+ABe4rEJuoSa/STobN6LdkwG2/DHqs
KKRrmv18OQY3hfHmQl16CTDnlpYx9dJ4Y6DblsUdeV02zbZSyvQIhGvbkxf7rZEUuIDO
Uv6X15itdGz9ejV6CeAlmQYuB+0v3yNJz3J5XjW8vrzDbUKCgQnON9W+P7eB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d-48ddb434e27mr20529379f8f.2.1792039822104;
Wed, 14 Oct 2026 21:50:22 -0700 (PDT)
X-Received: from localhost.localdomain (dynamic-2a02-3100-aeb3-cd01-f139-812c-65df-b930.310.pool.telefonica.de. [2a02:3100:aeb3:cd01:f139:812c:65df:b930])
by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48de0bd1843sm16398919f8f.56.2026.10.14.21.50.21
(version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256);
Wed, 14 Oct 2026 21:50:21 -0700 (PDT)
X-Cc: Karl Mehltretter <kmehltretter@gmail.com>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@kernel.org>,
Jakub Kicinski <kuba@kernel.org>,
Paolo Abeni <pabeni@redhat.com>,
Wei Fang <wei.fang@nxp.com>,
Clark Wang <xiaoning.wang@nxp.com>,
linux-kernel@vger.kernel.org
X-Mailer: git-send-email 2.39.5 (Apple Git-154)
X-Precedence: bulk
X-Mailing-List: netdev@vger.kernel.org
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>