Article View: linux.kernel.netdev
Article #17041[PATCH net-next v2 2/2] net: sgi: ioc3-eth: take the MAC address from a device property
From: Imre Kaloz
Date: Mon, 16 Nov 2026 10:21
Date: Mon, 16 Nov 2026 10:21
28 lines
8701 bytes
8701 bytes
Some boards have no MAC PROM on the IOC3's 1-wire bus, and the probe defers forever there. Let the platform supply the address as a device property for such a board. 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 25139cf5ff62..fa844267c325 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 one wire prom, or from a device property */ + if (ioc3eth_get_mac_addr(regs, mac_addr) && + device_get_mac_address(&pdev->dev, mac_addr)) return -EPROBE_DEFER; /* not available yet */ dev = alloc_etherdev(sizeof(struct ioc3_private)); -- 2.47.3
Technical Details
Message-ID:
<20261116102115.27574-3-kaloz@kernel.org>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-364178-linux-kernel-netdev=dewy.ruReferences:
<20261116102115.27574-1-kaloz@kernel.org>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-364178-linux-kernel-netdev=dewy.ru From: kaloz@kernel.org (Imre Kaloz) Newsgroups: linux.kernel.netdev Subject: [PATCH net-next v2 2/2] net: sgi: ioc3-eth: take the MAC address from a device property Date: Mon, 16 Nov 2026 11:21:15 +0100 Organization: Usenet Network Message-ID: <20261116102115.27574-3-kaloz@kernel.org> References: <20261116102115.27574-1-kaloz@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="2032999"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:3XF7Ah/6Z/JNT6EP3UYJeg6jyqs= sha256:GEaHlj9m0vle9iNP1iGvUXhAvP1HF5/OCNXrLxwHwV0= sha1:n3vj7YnFCq1PcAFPXl8v1lzIGe4= sha256:UiDDFoJUBXdpJor9ttgEjBJcFEDg6MikfcnsMjHDU8E= 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 B4424114B95; Mon, 16 Nov 2026 13:23:17 +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 2JKkolL5DbfI; Mon, 16 Nov 2026 13:23:14 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-364178-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 982CB114B8B; Mon, 16 Nov 2026 13:23:06 +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 1DC9C29A7F; Mon, 16 Nov 2026 10:22:48 +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=1794824566; b=t9mH0y11DcM5kjB+F9LedXk6B4UzuvjMNQs6ej0iZSZSahSSQPjK39RH+khP9CKzLox9 EzAJlNsIqnGliXoM6lu9jyNMYGYvC+DWnvuxcMWG6yyCuXQuOLAiFC3ElfnSkNqaq0A1x HJPxYRJ3apFoyH/SiWO1uOGcg/YqrOOYFDlJbW+HfGs23zD3M5Gmx2/AZ61iiPO97jVGU klBxLnxMXV3iXhKOOaj2PJHt3vgAbFu59vy1F5Yur9goJdBB3J25EQV8ApyZ2nqUdxW+f tuTDP63zVHCT409rL5V9eR+x7+8EMUDesnW9T3JMOPxn530HHGr08sH3ld5EZOhPQYA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794824566; 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=+mdym79kJn/elOqWsI1aqSwd2Rn9IZ9NS6lY8D5g1II=; b=aqpQ2W+XhPkGQ8z2y/ad94ClgE68kQ2JC3/uhJYqv/hXCxPGKbOlB4D4qlCBWPuDdf7P 5u/WJZfLniAO8AkK4kEtL4z4L0eRT9Znn61HG4SblKEgkZhW027Y0/5gaftoWpM4mzGFo y9E//j5HFazrVZPkpgtmG7WOJmznCPtykIUUOv4/wqtIJUDoUTVAx75v++oFm3ip/Fd+u Q0TUU8B7q6xkEh/C4BGVZNYdWy3QJkoHSOJbzPInteysxDRpA5Xmk7uccmWtL4CZ2Sa1G 3qBH43nqA3qrp/9DkIQ0zGhdMGjY44RuJ1CP4b0/PD/tFDNN7mTAJq/25ot4mfJx+HA== 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=Iq5MDfci; 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 E700E606A323; Mon, 16 Nov 2026 10:22:45 +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=Iq5MDfci 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=1794824565; b=wtEWkQdU4DfT1l0MOSClVQxAEonlBd4lWYry3pKgwrgjDgsOt9iz+HreoDzS8HF8gM6K f/Ydh+PXu35CPEV6k6AnSQ4agEeldeuxkLBuh5uX5Pfw+phFRjd1zb8bKYkuSeZpKZibS WukzkL/sSdkLXo/XD9bbH/LRmtTc1mqQ5EzY1iFV756B7p3JeTLChDJfHPXjnCDdqAilJ Nxt+ed0qQufbe2a4cf1JL8NiAg4FTyJ11016RbnxPCfctnGZl/A6UUWBZNnEDt5L6/hB8 YBs3upkG4iZRJ0643olp2R15k1gshSToVuMi3DgHOcXTEUku7mHQOKVcyacFAR9NlnQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794824565; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:MIME-Version:Content-Transfer-Encoding; bh=+mdym79kJn/elOqWsI1aqSwd2Rn9IZ9NS6lY8D5g1II=; b=LaLWmJ5yJUM1yik9OkxcuKlZgFpR5MyqU7r/gCMSj2fRrLScctoRZZydD+qbQSCteLGS rVzOnqx0/vdSi3anPxF60UePVdDORc4fHJS30v6p0KxINfAC//yq1uHXr3swAl9g544Yj OSY0Ub+hNs7qlQ3LSw9BGGlDkHRg4OQNaph2T5Izxf4ntE+uOqnSnzVzMG1Sx62XJJD+i 6Q2mx7Ch0RH74ybZFL8vDlvFuSsEuWHCiFYXJ9k7CFRoTGOmvVQ8rXza8bDm/xyBbB7QF IvHULn/TW/sPzR9koxWsr5fdSnqRyBQ0p5hhiIjfC+GFJcQoJCtIRXRukCYcZiQfVTg== 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=Iq5MDfci; 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 13140606A334; Mon, 16 Nov 2026 10:22:44 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 12B771F000CB; Mon, 16 Nov 2026 10:22:41 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794824564; bh=+mdym79kJn/elOqWsI1aqSwd2Rn9IZ9NS6lY8D5g1II=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Iq5MDfciQvjn6UnQ5JnSTFaJ5o7PfWq+6F3WoTnoK1pyCRl9/D49DWAZSZ445fUx1 ILAHpLxnBtkslEl/CuLBOIsheZ0qaXtZ8Eaep9GGqOEqwRQrF67CE7oqRUI+MjeDfo vUGHstCv/y4Xxy86xhMKutGkmsJjnG0hjJkQyiu2IdIvZlTznhb09ihUz4VtgAh+jI nUPHxpvXn3pI2l65yML91mbnDRHOMq6u+g4uhHck7MfNhVf0nW1iIdUKJUgmmvpYX2 xwtakZRtJsv0XrcgdxqUbRO/8ExJQkxjUGQfs8Rk37yUI/h44W2RV0i+vgxqkqFNFr IWaclhVofMrSA== 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, linux-kernel@vger.kernel.org X-Mailer: git-send-email 2.47.3 X-In-Reply-To: <20261116102115.27574-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