🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #25183

Re: [PATCH net v4 08/10] net: phy: smsc: wait for LAN83C183 power-down recovery

#25183
From: Simon Horman
Date: Tue, 01 Dec 2026 11:04
42 lines
10472 bytes
On Fri, Nov 20, 2026 at 04:48:07PM -0800, Florian Fainelli wrote:
> The LAN83C183 uses the generic PHY driver, which returns immediately
> after clearing BMCR_PDOWN. Section 1.11 of the datasheet allows 500 ms
> before normal operation is restored. Starting the Au1000 MAC before the
> MII clocks recover can hang the MTX-1 when reopening its interface.
> 
> Add a LAN83C183 driver entry and resume callback. Wait for recovery only
> when BMCR_PDOWN was actually cleared, and propagate MDIO errors without
> waiting. Resuming an already awake PHY does not incur the delay.
> 
> This supplies the PHY recovery delay; it does not by itself fix the
> Au1000 MAC/PHY ordering on reopen. The companion patch, "net: au1000:
> keep the MAC stopped until the PHY link is ready", resumes the PHY
> synchronously before MAC initialization and stops the MAC before PHY
> suspend. Both changes are needed to address the MTX-1 reopen hang.
> Keep this PHY change first so the recovery delay is available when the
> MAC sequencing fix is applied.
> 
> The specific PHY driver must be bound before the MAC attaches the PHY.
> For a built-in au1000 MAC used during early boot, enable CONFIG_SMSC_PHY=y.
> Module configurations must arrange for smsc.ko to be loaded before PHY
> attachment. If attachment falls back to genphy, loading smsc.ko later
> does not replace that binding and the recovery delay will not run.
> MTX-1 validation used CONFIG_MIPS_AU1X00_ENET=y and CONFIG_SMSC_PHY=y;
> the boot logs confirmed attachment to the SMSC LAN83C183 driver.
> 
> The LAN83C183 and LSI L80227 document the same LSI/SEEQ OUI and model 4,
> so this ID match also binds the L80227 and applies the same conservative
> 500 ms delay when clearing power-down. The entry otherwise uses generic
> PHY helpers and does not program SMSC-specific registers. Hardware
> validation is limited to the LAN83C183; the L80227 was not tested.
> 
> Sashiko AI review identified the dependency, binding prerequisite and
> shared PHY ID.
> 
> Fixes: be9dad1f9f26 ("net: phy: suspend phydev when going to HALTED")
> Link: https://pdf.dzsc.com/LAN/LAN83C183.pdf#page=44
> Link: https://datasheet.octopart.com/L80223-LSI-datasheet-11757091.pdf#page=73
> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>

Reviewed-by: Simon Horman <horms@kernel.org>
Technical Details
Message-ID: <20261201110411.GV804035@horms.kernel.org>
Path: mbox-mo1.pugleaf.net!news-wdc.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-374963-linux-kernel-netdev=dewy.ru
References: <20261121004809.1690280-1-f.fainelli@gmail.com> <20261121004809.1690280-9-f.fainelli@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-wdc.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-374963-linux-kernel-netdev=dewy.ru
From: horms@kernel.org (Simon Horman)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v4 08/10] net: phy: smsc: wait for LAN83C183
 power-down recovery
Date: Tue, 1 Dec 2026 11:04:11 +0000
Organization: Usenet Network
Message-ID: <20261201110411.GV804035@horms.kernel.org>
References: <20261121004809.1690280-1-f.fainelli@gmail.com>
 <20261121004809.1690280-9-f.fainelli@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="1692257"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:PdbXOLQZZQdpLqI/BltXg/ienFc= sha256:HHtQgi2eqF4V+e2NCecqQOtsXn7TP99PDZ5rLMsXJas=
	sha1:rSziIHeHXthmuWYpCf2KPVc41RQ= sha256:AxdPC88Aha4FskO2LLMvV1AXzyH6tGuxW+Oyeiyx0qU=
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 4781311733F; Tue,  1 Dec 2026 14:04:31 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.4
X-Spam-Status: No, score=-3.4 tagged_above=-9999 required=6.31
	tests=[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, 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 KqvVUlVAvsDs;
	Tue,  1 Dec 2026 14:04:28 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-374963-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 A15AA117301; Tue,  1 Dec 2026 14:04:19 +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 321DD2E718; Tue,  1 Dec 2026 11:04:18 +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=1796123057;
	b=ckGFtHiwdouyNAqyw0BYQo0SdIKPdTQOn8yQKxNrqT3qZsfqXGeqyXgyb2jO/k7nS/+d
	 RyyESiNi0SUQLbG5OC08dw45F/IKIcHywTfE6s3AzGmWVRmgt4iE4DsRwqcKP6A4KuYm8
	 oLnsc9gATynKZfsH1X+YniFRzkmGi2QaAFVW9CFnDK/Wgc8vZVlFl1RmFlKLPyK5uPUSA
	 SrDcIEbLQlNsKFMLvJIbiTPsR92ImzLFu9Uhp5XdqwALH8KN2vVdtnRqPa2lCwr6hj/qb
	 bxBPSvCv6ELKBaL0nRB2ZV9xj9jKojhchO6hnVe2YfTemSC+YSXs/DZC2dgg38HoFNw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796123057;
	h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc:
	 Subject:Message-ID:References:X-Mailing-List:List-Id:List-Post:
	 List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence:
	 MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=RBb5cnvpBvq/N01Xr45h69wA0kEGE9Nbis6AdsRWSVg=;
	b=p4xPzKm1RQLkw46BZxj0vz476/oaHLbXHrRhoWQ9NJNxj32t8zWHK9DkxhIA7wCwoi6F
	 p17WL19G6gw97vcYQsHMbEMKgBHWOvlx3VKX3E9WGEL2N9XUBbfQzregoFK3sRZVWW0Ai
	 vut9Ttu1nt5W8RuZeml6SjVeteVOOq7C9WaVbmvtgWWlrWfh0Lk2AyG+vF0XWrrvHGsDw
	 R3BfmMeFsRP7faO43XLj2v6+GXRgOCVjOA+2kMWYZ6QDdPsxD9LSF+wN3eb2TbKo3HUvH
	 LHofFy8/JNjT+BHfwvOzS1eNXwSsTdhpI1z0KZ7aFRmCF1UeingjfE+y0jb9RQs3DiA==
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=CSlKmNko;
	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 CD938606A32D;
	Tue,  1 Dec 2026 11:04:17 +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=CSlKmNko
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=1796123057;
	b=FdMzuLTgPBl+n7h5Jz/4Nrc3BDQkOFAroDIQbbvv5No8sPPxrdLD3+iCoKKbbS20dsSu
	 p/oNCf6X5twr/LvQC9NfPoCm0GdyS1Pu0j/FzcEevguUelNcLrmtblb0bcFkVM3VtAb1Z
	 scRP7C+0BG81SDO4jrCeGUb3rV36Sh1dHDhEPaZTOY4E8wxeH8GpfFcqX0vICMZZArgS5
	 1Fi15XeJfIMMe+85q0u9i/z1lpXxYsUlgKYlRNnRvo6u5Irh/gO3J2sTYsA5Zm4AcywxN
	 vK74vCD6Tc7/QHeuZn4fsCNnlUgX/4h6E9MEEazs7KDjbIK4mJGZAOKwgDreiGDFYow==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796123057;
	h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID:
	 References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=RBb5cnvpBvq/N01Xr45h69wA0kEGE9Nbis6AdsRWSVg=;
	b=eyWMl3zRw1fR3tgnjsZYusvxS7Hv/TmmiZyMJywgotijB5STh95u937EPR+WgmUPd6kK
	 aYwYdhjf0CVJJGDA6D81JNxgH+WIGunY086vB8fMmTr5qL6X7kt88Atny74A0U87h+Bi0
	 SaIHQRdaHPJ5h8A0ERJH3/xsBtZrLXUs3vwjgl/G1Ius02Qea9iW3QSL4b6HYbtYVYUUi
	 0nfa/F5vB6wJrJbPAkdA/nuRQfF9I7wBuXx0M/hklV+Wuv1U2+ZXZnQQNieAas2Kxw1a6
	 DPmTCiwnQS9R4Q8r54GhvM/a9wk/TdnriBlZXvpPF/rZBvzhdZv8GGLFiY8m+NU1p4Q==
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=CSlKmNko;
	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 EAA93606A31A;
	Tue,  1 Dec 2026 11:04:16 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 591041F00893;
	Tue,  1 Dec 2026 11:04:13 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1796123056;
	bh=RBb5cnvpBvq/N01Xr45h69wA0kEGE9Nbis6AdsRWSVg=;
	h=Date:From:To:Cc:Subject:References:In-Reply-To;
	b=CSlKmNkozwKnV08AzbGqRpFAxnCSyD/hFDduG8phGfqXgQOc7AxjtPJqNQQ7SRQI0
	 xVwItB/W2ne0f35Sd3+YjSlJQxqd0pLTefs4YejdGIyQ9XmAGmXGJ58okmE9LYMgus
	 tIkGwaFOkAjrO8I/lZ2OQhxvBFRAe/b3tWIsjf1UrhCNq5ey0vCEaUUXeXC7TOAcu+
	 UsqT3Qjn6053+6ua63AW82Yjsg5GbtiXEDIC2IZZ0m8bS6PxwZWcQDkRY558an1PCD
	 Z2Vkcq7BfbT8RRAjW+x13ZtuS6h14/S/l/k6oTW+sSS9Ii/ERMr2Oho/X8iO58xqfS
	 yPxB4yTw1ltfg==
X-Cc: netdev@vger.kernel.org, Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Heiner Kallweit <hkallweit1@gmail.com>,
	Russell King <linux@armlinux.org.uk>,
	Jijie Shao <shaojijie@huawei.com>,
	Runyu Xiao <runyu.xiao@seu.edu.cn>, David Yang <mmyangfl@gmail.com>,
	Herbert Valerio Riedel <hvr@gnu.org>,
	Danny Kukawka <danny.kukawka@bisect.de>,
	Mugunthan V N <mugunthanvnm@ti.com>,
	Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>,
	open list <linux-kernel@vger.kernel.org>,
	Manuel Lauss <manuel.lauss@gmail.com>
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
X-In-Reply-To: <20261121004809.1690280-9-f.fainelli@gmail.com>