public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next v2 0/2] net: ethernet: ti: am65-cpsw: Fix MAC address fetching
@ 2025-04-14  8:43 Michael Walle
  2025-04-14  8:43 ` [PATCH net-next v2 1/2] net: ethernet: ti: am65-cpsw: set fwnode for ports Michael Walle
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Michael Walle @ 2025-04-14  8:43 UTC (permalink / raw)
  To: Saravana Kannan, Andrew Lunn, David S . Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni
  Cc: netdev, linux-kernel, Michael Walle

MAC addresses can be fetched from a NVMEM device. of_get_mac_address()
will return EPROBE_DEFER if that device is not available yet. That
isn't handled correctly by the driver and it will always fall back
to either a random MAC address or it's own "fetch by fuse" method.

Also, if the ethernet (sub)node has a link to the nvmem device,
it will fail to create a device link as the fwnode parameter isn't
populated. That's fixed in the first patch.

Michael Walle (2):
  net: ethernet: ti: am65-cpsw: set fwnode for ports
  net: ethernet: ti: am65-cpsw: handle -EPROBE_DEFER

 drivers/net/ethernet/ti/am65-cpsw-nuss.c | 26 +++++++++++++-----------
 1 file changed, 14 insertions(+), 12 deletions(-)

-- 
2.39.5


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-04-17  1:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-14  8:43 [PATCH net-next v2 0/2] net: ethernet: ti: am65-cpsw: Fix MAC address fetching Michael Walle
2025-04-14  8:43 ` [PATCH net-next v2 1/2] net: ethernet: ti: am65-cpsw: set fwnode for ports Michael Walle
2025-04-14  8:43 ` [PATCH net-next v2 2/2] net: ethernet: ti: am65-cpsw: handle -EPROBE_DEFER Michael Walle
2025-04-14 12:20   ` Andrew Lunn
2025-04-17  1:00 ` [PATCH net-next v2 0/2] net: ethernet: ti: am65-cpsw: Fix MAC address fetching patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox