From: Rosen Penev <rosenp@gmail.com>
To: netdev@vger.kernel.org
Cc: Hans Ulli Kroll <ulli.kroll@googlemail.com>,
Linus Walleij <linusw@kernel.org>,
Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
linux-arm-kernel@lists.infradead.org (moderated list:ARM/CORTINA
SYSTEMS GEMINI ARM ARCHITECTURE),
linux-kernel@vger.kernel.org (open list)
Subject: [PATCH net-next 2/2] net: ethernet: cortina: fix nvmem mac addresses
Date: Thu, 19 Feb 2026 18:19:49 -0800 [thread overview]
Message-ID: <20260220021949.40817-3-rosenp@gmail.com> (raw)
In-Reply-To: <20260220021949.40817-1-rosenp@gmail.com>
of_get_mac_address can return EPROBE_DEFER in case an nvmem driver needs
to be loaded. Handle to allow nvmem mac address overrides.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
drivers/net/ethernet/cortina/gemini.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/ethernet/cortina/gemini.c b/drivers/net/ethernet/cortina/gemini.c
index 8726e5ffbce7..4225676662c8 100644
--- a/drivers/net/ethernet/cortina/gemini.c
+++ b/drivers/net/ethernet/cortina/gemini.c
@@ -2525,6 +2525,8 @@ static int gemini_ethernet_port_probe(struct platform_device *pdev)
netif_napi_add(netdev, &port->napi, gmac_napi_poll);
ret = of_get_mac_address(np, mac);
+ if (ret == -EPROBE_DEFER)
+ return ret;
if (!ret) {
dev_info(dev, "Setting macaddr from DT %pM\n", mac);
memcpy(port->mac_addr, mac, ETH_ALEN);
--
2.53.0
next prev parent reply other threads:[~2026-02-20 2:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-20 2:19 [PATCH net-next 0/2] net: ethernet: cortina: support deferral Rosen Penev
2026-02-20 2:19 ` [PATCH net-next 1/2] net: ethernet: cortina: use devm to enable clocks Rosen Penev
2026-02-20 2:19 ` Rosen Penev [this message]
2026-02-20 8:40 ` [PATCH net-next 0/2] net: ethernet: cortina: support deferral Linus Walleij
2026-02-20 13:04 ` Andrew Lunn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260220021949.40817-3-rosenp@gmail.com \
--to=rosenp@gmail.com \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=linusw@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=ulli.kroll@googlemail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox