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 Closes: https://lore.kernel.org/all/179508377126.3136.8138823841306639675@kernel.org/ Signed-off-by: Imre Kaloz --- 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