🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #23933

[PATCH net-next v3 2/2] net: sgi: ioc3-eth: take the MAC address from a device property

#23933
From: Imre Kaloz
Date: Sat, 28 Nov 2026 15:51
34 lines
9038 bytes
The system-board IOC3 of the SGI Fuel has no MAC PROM on its 1-wire
bus, so an ioc3-eth probe there would defer forever. The Fuel and the
Origin 300 take the address from the L1 controller. Take it from a
device property, for platforms that describe the address that way.

Read the property first, so a board with both does not depend on when
the 1-wire bus is enumerated.

Reported-by: Sashiko <sashiko-bot@kernel.org>
Closes: https://lore.kernel.org/all/179508377126.3136.8138823841306639675@kernel.org/
Signed-off-by: Imre Kaloz <kaloz@kernel.org>
---
 drivers/net/ethernet/sgi/ioc3-eth.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/net/ethernet/sgi/ioc3-eth.c b/drivers/net/ethernet/sgi/ioc3-eth.c
index 8ea6a54d6da3..a3e6f511d43d 100644
--- a/drivers/net/ethernet/sgi/ioc3-eth.c
+++ b/drivers/net/ethernet/sgi/ioc3-eth.c
@@ -857,8 +857,9 @@ static int ioc3eth_probe(struct platform_device *pdev)
 		dev_err(&pdev->dev, "Invalid resource\n");
 		return -EINVAL;
 	}
-	/* get mac addr from one wire prom */
-	if (ioc3eth_get_mac_addr(regs, mac_addr))
+	/* get mac addr from a device property, or from one wire prom */
+	if (device_get_mac_address(&pdev->dev, mac_addr) &&
+	    ioc3eth_get_mac_addr(regs, mac_addr))
 		return -EPROBE_DEFER; /* not available yet */
 
 	dev = alloc_etherdev(sizeof(struct ioc3_private));
-- 
2.47.3
Technical Details
Message-ID: <20261128155146.2836-3-kaloz@kernel.org>
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-373203-linux-kernel-netdev=dewy.ru
References: <20261128155146.2836-1-kaloz@kernel.org>

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-373203-linux-kernel-netdev=dewy.ru
From: kaloz@kernel.org (Imre Kaloz)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net-next v3 2/2] net: sgi: ioc3-eth: take the MAC address from a device property
Date: Sat, 28 Nov 2026 16:51:46 +0100
Organization: Usenet Network
Message-ID: <20261128155146.2836-3-kaloz@kernel.org>
References: <20261128155146.2836-1-kaloz@kernel.org>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="980909"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:JGi5I2FwBlAMineIIqy6JXJ7u00= sha256:mtZdrH/38we6xPscq1rtE1fsH2qGu7UcThX9W4fZyHU=
	sha1:jd8dJc2F6juJwrqvXGa5HbllzJk= sha256:g/dfEDa4WEFmy3pJBT/YhbtA+E3HG2B8R4u4Ja9oYuM=
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 5FB65125F76; Sat, 28 Nov 2026 18:52:12 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 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] 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 l7mP8437oc1g;
	Sat, 28 Nov 2026 18:52:09 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-373203-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 D75F1125F7E; Sat, 28 Nov 2026 18:52:00 +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 410C9299DD; Sat, 28 Nov 2026 15:51:57 +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=1795881117;
	b=EcpkffX7jsnnTVtUO2DsPiejxaQ1/HqX99AFpiA8FDEaFVuF6U5RRi99nos9Bvusit8E
	 jCCQGZjtglW0KpKxcCRa65/L8GaFifJqDSUaajAVMMqTwKBlMa/1ybqoJhzMH4lILwyru
	 8GhinNSnSdwhUPAmk0emKobzYxGsmsMPXPnTrqJPWqQNOFaSKkaNPZwJZxT6rCBc0XhCW
	 ZMvf7Q4gtTruWvSDqk8YPfQlCFgcsk92lYWDwi4kSmlm+5Tt19T35NCJxD2IcylmCfDiv
	 K9iqPqkGTqlBPjzkvFTc7bbjc86czp6tfkx1vDGVvAOz97yVnAfUeMTUPcMKku5kF8g==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795881117;
	h=X-Original-To:Received:Received:DKIM-Signature:From:To:Cc:Subject:
	 Date:Message-ID:X-Mailer:In-Reply-To:References:X-Mailing-List:
	 List-Id:List-Post:List-Help:List-Subscribe:List-Unsubscribe:
	 List-Owner:Precedence:MIME-Version:Content-Transfer-Encoding;
	bh=tkbwSyU+lpCxfq68+eM7Z8lXaTTslfP02OUcnKmZ9sg=;
	b=JUg60JokEuzI9oGOzjzFzRzLUpqQFZxiPZT3Er+Iza0oeudnZplEtby3kgN21vNFf+UL
	 45Ee3cBnrKFunKVAQ0jl0s+CDsQGHecl5249iCdTl7gIpayKB0fZUq+Dzeb6ePEqTMNzh
	 Gr0qXliWNx2mQ0O7PU3Nk9s31uIJIy4THDs0MXJl8bUElLhEF8qie2ECFtV6Q2JFhZLcB
	 CfbpFYqot07DBc7IVCNsrAFkQu0s5Y0Vj3BGBBMukfedUyZ3izxQUxmILxw5ABvqb4En6
	 iHP1Rgqn+nzbpShbyx2znhI1mByV59YE3SDLqVoUaGg/D75rX/1cpb2ysRTG5v3OoYA==
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=Mi9bJB2u;
	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 170CB606A329;
	Sat, 28 Nov 2026 15:51:57 +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=Mi9bJB2u
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=1795881116;
	b=Zc+NAIPeAsa0KVrCbjI5I092yI+XhvUb1qoShY3JeOijOwdx5QnEKlibSumFme7znh9u
	 DX3wQg8WeIqJWWftJCu5nzG8ESh8+hK/OrQ/HeoH2PrvMKzfX6rGGD3oqLxcPBfj4pG1u
	 CgddVjZUe4+154/nUNgah41aVb7+4XVoCOLLGOXhn46gsM7elFrojTYotFLSqzCxP5+1l
	 N7Dg0XGiszMfitFYYR2acgbf6S/p5gyrHzfwHFsKKYe2R3bqh3dC1inBh1H1q6v4rdqd2
	 D+hekYGYFbii/Y4AOau6op1N1HRmc0W5L3EVMjGjojRD/njbVczppcAqf8t15uYL4LQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795881116;
	h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer:
	 In-Reply-To:References:MIME-Version:Content-Transfer-Encoding;
	bh=tkbwSyU+lpCxfq68+eM7Z8lXaTTslfP02OUcnKmZ9sg=;
	b=sGglRcrPYdFO1VhHL6M9enib1iuF64t6ZPbLzLrrFblRKVv/UblIz6DzhQxEu/BLjmfC
	 rSr5TiQuyO/6xDd0kv+eCJF5YNKMLgrru8XyzZ2YgF9gpNS8FIsqPxtjWTBOwEjoRaUuG
	 orr+gfCmL5ZWPdZx6V9r+XlUSNv3Z0Az5AVi35Fq/gyybKUMT5sLl53dr0/LvI0DDJQVm
	 M07PlwyNWe28Yg26q/IGHOZJS4NBziS7ynFZghx1ZdN/qCw9aDk0kBzeBPLnJoSMWHSND
	 XEkjf4FRF3YOkWQ02foqQerXwSBBPmMQNCjVI4ruMsuqi6hvx2Yy9CY7wb2YZNo2iXA==
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=Mi9bJB2u;
	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 357A0606A31C;
	Sat, 28 Nov 2026 15:51:56 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7A4461F000C1;
	Sat, 28 Nov 2026 15:51:53 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1795881115;
	bh=tkbwSyU+lpCxfq68+eM7Z8lXaTTslfP02OUcnKmZ9sg=;
	h=From:To:Cc:Subject:Date:In-Reply-To:References;
	b=Mi9bJB2uvPExHOGkccG5BJ8JrOyuZq5sB4XjPk3PgmWxqkOLIIpSai3eh+0HVxFCM
	 m7hGiJMl64bDmy0AOEXfmCCSCSDJB9rz4YXQ6/Jb1XRdRXmpMb3W9GGunXv3AOQ+fE
	 nwyf2vHE6FX1iuBd6g5ii+6UEwRLmCdXDKz86q5pq4oWMbUNsEQveZWoxicWsSaeZF
	 S49PO8wXnXvA+2XlATYyMfKxKO2xXtLfnS9JC7rS/hsa0Wglfhg4pHMwdg/HFm9TmP
	 bdVVOg9QP56B6AfWonufjbuJYY4nRFnzF+4xuq7ePu2M3CHY9qBICBLjqpTv5CvLYK
	 TRbe9e+xuusqg==
X-Cc: 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>,
	linux-mips@vger.kernel.org,
	Sashiko <sashiko-bot@kernel.org>
X-Mailer: git-send-email 2.47.3
X-In-Reply-To: <20261128155146.2836-1-kaloz@kernel.org>
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