🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #17572

Re: [PATCH net-next v2 3/4] net: phy: marvell: factor out EEE errata initialization

#17572
From: Andrew Lunn
Date: Tue, 17 Nov 2026 02:04
17 lines
9154 bytes
On Mon, Nov 16, 2026 at 04:27:03PM +0100, Paul Louvel wrote:
> The 88E151x EEE errata sequence writes four register pairs on page 0xFF.
> Using phy_write() for each access takes and releases the MDIO bus lock
> every time, and returning early on error leaves the PHY on the errata
> page.
> 
> Move the sequence into m88e1510_eee_errata() and use phy_select_page()
> and phy_restore_page().
> This reduces the number of bus lock/unlock cycles and restores the
> previous page if one of the errata writes fails.
> 
> Signed-off-by: Paul Louvel (Schneider Electric) <paul.louvel@bootlin.com>

Reviewed-by: Andrew Lunn <andrew@lunn.ch>

    Andrew
Technical Details
Message-ID: <40aa39c5-8132-4616-98fc-163be816020a@lunn.ch>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-364895-linux-kernel-netdev=dewy.ru
References: <20261116-marvell-phy-rgmii-v2-0-e04dca67e89a@bootlin.com> <20261116-marvell-phy-rgmii-v2-3-e04dca67e89a@bootlin.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-364895-linux-kernel-netdev=dewy.ru
From: andrew@lunn.ch (Andrew Lunn)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v2 3/4] net: phy: marvell: factor out EEE errata
 initialization
Date: Tue, 17 Nov 2026 03:04:23 +0100
Organization: Usenet Network
Message-ID: <40aa39c5-8132-4616-98fc-163be816020a@lunn.ch>
References: <20261116-marvell-phy-rgmii-v2-0-e04dca67e89a@bootlin.com>
 <20261116-marvell-phy-rgmii-v2-3-e04dca67e89a@bootlin.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="2217756"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:B58FDPHgwbYrouVIY0reOUcto70= sha256:d8dJplL1Z7aLCz+ozTbvL9tQDVRSlhDxpnSSNQa2+G0=
	sha1:EtVB+i8xh2VldX4QNGI3CR+5vtg= sha256:Rej6So9zCVtJsfiLJ+OnT3qUKKxsUW0pPKFXU3/2esw=
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 0FEF0114E12; Tue, 17 Nov 2026 05:04:50 +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 (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 wmD85UcrnEYr;
	Tue, 17 Nov 2026 05:04:46 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-364895-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id 63485114DFB; Tue, 17 Nov 2026 05:04:38 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id 66505297AF; Tue, 17 Nov 2026 02:04:35 +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=1794881075;
	b=0BoLdQ4KZWbTy5wSv2KgrTuI7kgsCnjbLEtYtG6IjCu9Khb9xAPObUlVriNeeb2z8XMB
	 m/Pe8YBLpJ8yMbxNOyc+ibBITWT+dcya3s67Q4b+LijgdYBLgdao5Rl4WbBpYdJEnf7Y2
	 oL72QY5gKWAC6+LLTY4Do1IWUMZjzlc2Q/cnaT8JIlqZpiLS6iMEXu7cnQupsrlxqNrL9
	 bYbpRCDmO+SzSdoaSb0ZD17hvRuTZAPKMg51yF26HsaKpXBoYHzs4GsB+7woIGNVE6AXh
	 tAMVPORJtlyXa1ertPgTDfdvxRw9c7UYJWt2GrUd2FrT7cttaMXexfSjWwC/RqGWSdg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794881075;
	h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received: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=yYS6INKBjNAqptOhWHzAGeyvA75hMOTGPLHZknZUCPI=;
	b=r6pJQYxwvlb+Ldbt33EEq3Y9Q8+LCkbYcv0gDV6YWLkjwrsR4AXSV6oVJJgp1zahf7/y
	 5mVgbQN2wdBSWxDwX1GsTeDuUYVMAObCa4mYDV9d0PjlxkqsmLQl0jhob7DYrQlaiOcMF
	 ZziMH8zQz1B0z4JVwEldAkAvCXn3+MV4s9Ne17ZjRvGkdF7tAYQE72iEOqhifXIFBFsOO
	 1+k9uZ3xt1VeI4ex+2zl1sZvePBYfYgP2H2cwFKoulAlPa6gJvnVAnmISGokhO11eoIwu
	 wd4rTPmdbOdbHkqDSz04+uYFku1wsV9ksxwgJkgmWHV5QMbgjUJcXNKnRleJ5twSs0A==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=SZWmavT7;
	dmarc=pass header.from=lunn.ch;
	spf=pass smtp.mailfrom=lunn.ch;
	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 29E5C606A323;
	Tue, 17 Nov 2026 02:04:35 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=SZWmavT7
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=156.67.10.101
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794881069;
	b=pKho6NkZM4ogUNSepzlZWSfWqXecWA3MBkTJJZILOpk+ewoF75IYqpM4/6LFvNYIrP9/
	 eC0z45ElUDcPYj1jcpSwAJ4PUzx/bC4B70bs7XCutxn4WyviilPjUvtaXh/XeYMF3xku0
	 Vc2Oiza7WnFfNBQiDt9O1XUHKM1oCptelZ1Lb0AIsCO9JU+SS6kmHGiNHyz8JFJyGEXSh
	 ssW4f0ztn9qxSr9T92EKq5jjisnB/2yFTaxuprfZBAmci2JKzqsPIkMR/tV4uFrBh0d5y
	 oH27i7vJP607LbwnJzA0IrVbHu5j8MHvpgJMhdEUNIrGphlEtPvljlqqublpBW/CyIg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794881069;
	h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject:
	 Message-ID:References:MIME-Version:Content-Type:Content-Disposition:
	 In-Reply-To;
	bh=yYS6INKBjNAqptOhWHzAGeyvA75hMOTGPLHZknZUCPI=;
	b=Mr6QLpz7UipZDxdRiV8NQtupBPTf8hJBQ2lKXenP1Xd6LNOy8lNuzSyykJnbuRMgsEVN
	 pcqh2rY5JEj7oze+E4N5ALR8lZ/Ikc/nnaCyhDdwwrU1lgk8HqLWFPYmj/dltIZOj6NSp
	 jqsxuO9yrvdKeAnPY6vMSJEz2UI86o/LuYc2xOeJFzrVA23VaG0l83X6ChhrHuTukuAAM
	 xBRXt7tjSy3Thkc+5NsF93nenp0ghH3Ft3JDCZPCfd9mMSSoYFDDxP0NRTnWe1JO98zIG
	 7HRAUJ741dd82CuYBfP5NrTrkSyZQkZdzyaTrXk14LN7j2F0+grA04d+S1MV7ZWgV/Q==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=lunn.ch;
	spf=pass smtp.mailfrom=lunn.ch;
	dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=SZWmavT7;
	arc=none smtp.remote-ip=156.67.10.101
X-Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id F2453606A31C;
	Tue, 17 Nov 2026 02:04:28 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org F2453606A31C
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=yYS6INKBjNAqptOhWHzAGeyvA75hMOTGPLHZknZUCPI=; b=SZWmavT7ekj5NRY8lnc0jlTNag
	GbNvD0FEpGOGL26XTTSrwoMLRk7Fgx1S5cCbO+h/5+tNvbhFu6pSFnmUxTqE0QgsUrYF0gXGGygue
	MxS15SUEVJnKuNpTshuJSGu2Xmfwje2cIAM/FSWWR+cU6Rt8ckdCMJ/ywzCawKYTSt30=;
X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2)
	(envelope-from <andrew@lunn.ch>)
	id 1xT8YZ-00H3BF-7H; Tue, 17 Nov 2026 03:04:23 +0100
X-Cc: Heiner Kallweit <hkallweit1@gmail.com>,
	Russell King <linux@armlinux.org.uk>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Maxime Chevallier <maxime.chevallier@bootlin.com>,
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
	Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
	Miquel Raynal <miquel.raynal@bootlin.com>,
	Herve Codina <herve.codina@bootlin.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: <20261116-marvell-phy-rgmii-v2-3-e04dca67e89a@bootlin.com>