Article View: linux.kernel.netdev
Article #3191Re: [PATCH] net: phy: realtek: restore RTL8211F RGMII delays on resume
From: Andrew Lunn
Date: Wed, 14 Oct 2026 12:05
Date: Wed, 14 Oct 2026 12:05
23 lines
6737 bytes
6737 bytes
On Wed, Oct 14, 2026 at 05:36:59AM +0200, Karl Mehltretter wrote:
> The RTL8211F-VD loses the RGMII TX and RX delay enable bits across a
> software power-down. rtl8211f_config_init() programs these bits from the
> PHY interface mode, but rtl821x_resume() 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.
>
> Program the delays again after the existing resume delay. rtl821x_resume()
> handles RTL8211F and RTL8211F-VD, both of which use
> rtl8211f_config_rgmii_delay() during initialization.
This bit is important, so i would of put it earlier. In practice, it
should not matter that the RTL8211F gains the extra RGMII register
rights.
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Andrew
Technical Details
Message-ID:
<f9deecf0-0bb6-4fc9-a8e1-f15c57896195@lunn.ch>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-346203-linux-kernel-netdev=dewy.ruReferences:
<20261014033659.95196-1-kmehltretter@gmail.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-346203-linux-kernel-netdev=dewy.ru From: andrew@lunn.ch (Andrew Lunn) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH] net: phy: realtek: restore RTL8211F RGMII delays on resume Date: Wed, 14 Oct 2026 14:05:16 +0200 Organization: Usenet Network Message-ID: <f9deecf0-0bb6-4fc9-a8e1-f15c57896195@lunn.ch> References: <20261014033659.95196-1-kmehltretter@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="2286737"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:LrTsbJIckZOBu/rt0lCFs+ikdOI= sha256:t6TbesjNJ4CVrMlTEwuS02LX5X+zlE0zyoxVHzJgR9g= sha1:2qYBXm0fIGF5QWY/4SDXv7yxXR0= sha256:G4TLul8PXFHXvW/7IEWny/JDHXX0tWkH4gC4k4oUBJg= Content-Disposition: inline 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 B47CA1100D8; Wed, 14 Oct 2026 15:05:44 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -0.85 X-Spam-Status: No, score=-0.85 tagged_above=-9999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, 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 (1024-bit key) header.d=lunn.ch 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 Ew0G5aLMoKhj; Wed, 14 Oct 2026 15:05:40 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-346203-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=lunn.ch X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mail.dewy.ru (Postfix) with ESMTPS id 9DB7C1100C5; Wed, 14 Oct 2026 15:05:30 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sto.lore.kernel.org (Postfix) with ESMTP id 5147360C7EE; Wed, 14 Oct 2026 12:05:29 +0000 (UTC) X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 894C447D95C; Wed, 14 Oct 2026 12:05:28 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="2krYKwq8" X-Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BCE5943CEF8; Wed, 14 Oct 2026 12:05:26 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791979528; cv=none; b=Hy40HUUcj6J+PfFLFbd9jZTnJMPPkjrO1Yd7LYRMyzIVc3eQ/BTnOdwMBUDunIO7pO7bX+cIVkhbQvDc7eeebx7pgXLKWnu8pitHhyHnnHRR/Kso6MG6aLO4T9AyJQ+WeiBFD7Blap9KFrXZKGj7ctbnBTii8W+BeXMFzP8EeuA= X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791979528; c=relaxed/simple; bh=NZlN31h/+P5/LOsgK0O0KLDjy+TdbxOi/nBuQ6rHObI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=l6dc7tilCMXYpU3mWkxptoANKzom87wQ2xuashgkwMz3KEeRAmhQNm8GDu+sG/u2ch1TUil4URf6i4RfPsfivICjfzd03M5N/k6SSwGZyuzrTZXrtNwojccpXOCohsAoAbCx2vBPBlZABT05MyqZk5ImpSltGMGVTtl1KG+se9Q= X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=2krYKwq8; arc=none smtp.client-ip=156.67.10.101 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=cN0vCH3Rd8wcPVWll8aOa9Voucmcj5s4Ox2vF2HQU10=; b=2krYKwq8VxSSV4Olo35uAMh/4Z OPmi/jjNPIonn3HmpKqdgIAINxlRuumNcblTMvCruAFps6W213teiiEBoFNG8x75jkFyCetNuA5HP Yc94z2nkLpOn+SXxjdZEooF6hxoGqD/kbE+fTpxVNrgWNRJA0JaVl4DHBevSKsU7STXg=; X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from <andrew@lunn.ch>) id 1xGxjR-00AiyX-19; Wed, 14 Oct 2026 14:05:17 +0200 X-Cc: Heiner Kallweit <hkallweit1@gmail.com>, Russell King <linux@armlinux.org.uk>, netdev@vger.kernel.org, "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-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> X-In-Reply-To: <20261014033659.95196-1-kmehltretter@gmail.com>