]> git.baikalelectronics.ru Git - kernel.git/commit
net: bgmac-platform: handle mac-address deferral
authorMatthew Hagan <mnhagan88@gmail.com>
Sat, 25 Sep 2021 11:36:27 +0000 (11:36 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Sep 2021 11:28:15 +0000 (12:28 +0100)
commit67f32f966c31610738615b457329783eb3e92413
treeae943ba6851b97628aa454d7ac554c8a86d0e243
parent0626333a8120e5a4bb4cd7cbe36c05bde4ac8626
net: bgmac-platform: handle mac-address deferral

This patch is a replication of Christian Lamparter's "net: bgmac-bcma:
handle deferred probe error due to mac-address" patch for the
bgmac-platform driver [1].

As is the case with the bgmac-bcma driver, this change is to cover the
scenario where the MAC address cannot yet be discovered due to reliance
on an nvmem provider which is yet to be instantiated, resulting in a
random address being assigned that has to be manually overridden.

[1] https://lore.kernel.org/netdev/20210919115725.29064-1-chunkeey@gmail.com

Signed-off-by: Matthew Hagan <mnhagan88@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bgmac-platform.c