🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #25158

Re: [PATCH net-next v5 2/4] r8169: hold MDIO bus lock while loading firmware

#25158
From: Nicolai Buchwitz
Date: Tue, 01 Dec 2026 10:18
28 lines
9152 bytes
Hi Javen

On 1.12.2026 10:44, javen wrote:

> [...]

> diff --git a/drivers/net/ethernet/realtek/r8169_main.c 
> b/drivers/net/ethernet/realtek/r8169_main.c
> index f151ab681393..b289ff6c3064 100644
> --- a/drivers/net/ethernet/realtek/r8169_main.c
> +++ b/drivers/net/ethernet/realtek/r8169_main.c
> @@ -2686,9 +2686,14 @@ void r8169_apply_firmware(struct rtl8169_private 
> *tp)
> 
>  	/* TODO: release firmware if rtl_fw_write_firmware signals failure. 
> */
>  	if (tp->rtl_fw) {
> +		/* Keep phylib users (hwmon, PTP) off the bus meanwhile. */

nit: PTP doesn't exist yet at this point, maybe just drop it.

> [...]

Reviewed-by: Nicolai Buchwitz <nb@tipi-net.de>

Thanks,
Nicolai
Technical Details
Message-ID: <3851f40a836175a37edf704005bf7472@tipi-net.de>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-374934-linux-kernel-netdev=dewy.ru
References: <20261201094454.1150-1-javen_xu@realsil.com.cn> <20261201094454.1150-3-javen_xu@realsil.com.cn>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-374934-linux-kernel-netdev=dewy.ru
From: nb@tipi-net.de (Nicolai Buchwitz)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v5 2/4] r8169: hold MDIO bus lock while loading
 firmware
Date: Tue, 01 Dec 2026 11:18:28 +0100
Organization: Usenet Network
Message-ID: <3851f40a836175a37edf704005bf7472@tipi-net.de>
References: <20261201094454.1150-1-javen_xu@realsil.com.cn>
 <20261201094454.1150-3-javen_xu@realsil.com.cn>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII;
 format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="1683884"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:GnC4SJVU7Pv/CWagiwmqcyz9DLA= sha256:9dsAZTvSEsJuOeBCbjqV94zPtPztE28vcmJLtZCi6dY=
	sha1:de1NMOqPVrEpT4T/FW0QNeKEn10= sha256:gjZGjDuQ962L58iarfprP/JKK9Yh18cpd5lmkhi47Qc=
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 75DF8117323; Tue,  1 Dec 2026 13:18:55 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.05
X-Spam-Status: No, score=-3.05 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, 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, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=tipi-net.de
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 vCg6ldd1Djtz;
	Tue,  1 Dec 2026 13:18:52 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-374934-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=tipi-net.de
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 77FCA11716E; Tue,  1 Dec 2026 13:18:43 +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 3BAEB33A6B; Tue,  1 Dec 2026 10:18:39 +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=1796120318;
	b=jOmncPdLm+KRutZBWGgiJNdnczbkK9c16YTJ+SfBJcW0yL4d03D9YSmK/IC00zQySekq
	 FEVkSAdAAYGNM1dZQ4+3enJtCJACK6WGMgMCQ7UZKu7n5QE91rCuoLVmux41PcdcqnbgR
	 HysAs8x8GnTHrChFLuEkDi3NPyuGTQr4o8KRVxLKwJWRIzdLa/OBg7jm7LsXy2ez+zA7H
	 Y5OuulPwdf8zR8ksCmVjAchUJlvrLFaH+bzexl9WOpLqAmJsyoLZHRVU0/Vxlsh9Iis1j
	 HD5Wlmi8pnjhM1SwKwhy108fSTBxv6h/BD4fo4g2Cq/0N4T7667GhV/HCdsbIf3P7RA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796120318;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:Date:From:To:Cc:
	 Subject:In-Reply-To:References:Message-ID:X-Sender:Content-Type:
	 Content-Transfer-Encoding:X-Last-TLS-Session-Version;
	bh=RULBfnQtXdzwAwcZVuuWy6OnTMHmmER/WX5Ety2jELc=;
	b=39PpRwUCMH10Wa3bLvsXm+RvHX0vUKA2YTusDVD6bqUh7WTXseQqAOKtDlWAx5vHtI2F
	 dvabGl7n2QT1QGRpePadygXm1dLL1bzGbBYY0GswDO8gSOYSJ4BXj8wzzemWkD6y0hL0q
	 849YRQZiC5HXDSKQVuwuTVKyXXL5O90amtTeXxzrv9pJS4QozRXaFdITEUL/lp8HqOEks
	 Pafopm+2M1QKYZla0OM2LjClUr46pxoZwuUCgtqGxKT9x+46Ab2AyV9vx8NoLtNtiyjhU
	 CPTSHDyyBNhZSXGHre5l8yXJJESKISqT/PLDXfydSqKcFxLr2z2l6AsKX/JoEg9JkrQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=tipi-net.de header.i=@tipi-net.de header.a=rsa-sha256 header.s=dkim header.b=Jq2qdpC1;
	dmarc=none header.from=tipi-net.de;
	spf=pass smtp.mailfrom=tipi-net.de;
	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 C62FC606A32F;
	Tue,  1 Dec 2026 10:18:38 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=tipi-net.de header.i=@tipi-net.de header.a=rsa-sha256 header.s=dkim header.b=Jq2qdpC1
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=194.13.80.246
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1796120313;
	b=OY6fW9wyX6djlobnOojnve7YhV28iwn0OgVzHQo6mwKz/GdTVmgzyXWVynbQ22DN5Zk4
	 61axzlEUm/A1/z9LI1FDFmE4TAfeiz/S4CMbcYyElenbDVk5Az7+2+QpoF72eeyRIJFV+
	 9VDR57MBr0EU30rTaPMnurTmBqizc8flCOBZirrCpO1yaxqecgl+tBHlENeq6+tfaJVEK
	 6WMg1oLP3YG2cyi34veVvfQrA4ZMXfgkbp6fOi7a1M2sI+DPmY8Hh9HmlyQ+N8mklDSED
	 NTZ+dBzo2IXm48I9tBVv8mL5YAvmEKwmOp62+y1/LzjZ5AuuLYHNPQsSq/0QgyRRFXQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796120313;
	h=DMARC-Filter:Received:DKIM-Signature:MIME-Version:Date:From:To:Cc:
	 Subject:In-Reply-To:References:Message-ID:X-Sender:Content-Type:
	 Content-Transfer-Encoding:X-Last-TLS-Session-Version;
	bh=RULBfnQtXdzwAwcZVuuWy6OnTMHmmER/WX5Ety2jELc=;
	b=qTOm2xFFUobvQL26SUDtBkArudwSabi78WZYWoRB1gdLdd0XT9u0nungBJeCi/0VgHl1
	 d33eqE2X2zskEQdhaTE1yaal/uay7JxXm4SO4cNhucJOFzBvnZoQ4COEOV8MZGT0rVUCD
	 WtQ9eYUUHSDszptYrBF5vfNO2Md5U8fbPz3Ajac9Rew73aIpOZ/FqJI+DbC7bPYCmyLls
	 L6jnSenyHfTt217S59ySSFE/q/LT3K2ehj4oAYDTpbxkbOyZvbxEO4IqtFy4jm9t8cF/Y
	 QRIpQ5mPQynjBCTw2gtXiH82JiJC5uLMr/aqT9Oi8m7UfjntyVJ6oZp/rjYSqZrZa3g==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=none header.from=tipi-net.de;
	spf=pass smtp.mailfrom=tipi-net.de;
	dkim=pass header.d=tipi-net.de header.i=@tipi-net.de header.a=rsa-sha256 header.s=dkim header.b=Jq2qdpC1;
	arc=none smtp.remote-ip=194.13.80.246
X-Received: from mail.tipi-net.de (mail.tipi-net.de [194.13.80.246])
	(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 74DF4606A333;
	Tue,  1 Dec 2026 10:18:32 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 74DF4606A333
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tipi-net.de
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tipi-net.de
X-Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 6D8BBA166D;
	Tue, 01 Dec 2026 11:18:28 +0100 (CET)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tipi-net.de; s=dkim;
	t=1796120309; h=from:subject:date:message-id:to:cc:mime-version:content-type:
	 content-transfer-encoding:in-reply-to:references;
	bh=RULBfnQtXdzwAwcZVuuWy6OnTMHmmER/WX5Ety2jELc=;
	b=Jq2qdpC1x6sM9LGOD9UymfwHu+O64/isRFz08JMTW1SqIrrQ97lFaGeOaC1ep8ln/ADsrp
	fTLY5EF3Mi6PeQTpWOrX8wBuY4WXJtdbJcUks6Esao/pDYiGNx8CJT9He9AXTlJPrP2dk7
	Qed5dV3Eg445Vb775nDMfMIVpwIb5lQqOZANA3/OCt8z0aR+xX3Jn0waQqPMPNRtMa0uwn
	Z1tGUK0lYOPQIhtDcWtmEcc0+7svmCTR7DdPHVMSXOD3xjF0R7uGlvzP3HXKwWaGP0VX6L
	IMcaJInGGZbvye6L8n69x6qwsOpifQtvDxg1YWxK31OVQfa9jli6fRdD9+fMzg==
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-Cc: andrew@lunn.ch, hkallweit1@gmail.com, linux@armlinux.org.uk,
 davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
 pabeni@redhat.com, maxime.chevallier@bootlin.com, netdev@vger.kernel.org,
 linux-kernel@vger.kernel.org, daniel@makrotopia.org, vladimir.oltean@nxp.com
X-In-Reply-To: <20261201094454.1150-3-javen_xu@realsil.com.cn>
X-Sender: nb@tipi-net.de
X-Last-TLS-Session-Version: TLSv1.3