mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
tg3: use random MAC address when tg3_get_device_address fails
Some of the tg3 NICs we use (BCM57762) reset the SRAM MAC address to the placeholder address on link flaps, tg3_chip_reset, etc. We've typically fixed it from userspace, but sincee4c00ba727("tg3: replace placeholder MAC address with device property") was merged, tg3 just fails probe as we don't have a way to get it through the generic device_get_mac_address infrastructure as fallback on our systems. Make the driver assign a random address in this condition instead of being fatal for probe. Set deferred_probe_reason through dev_warn_probe if the address isn't yet available from the provider. Fixes:e4c00ba727("tg3: replace placeholder MAC address with device property") Suggested-by: Jakub Kicinski <kuba@kernel.org> Link: https://lore.kernel.org/netdev/20260909191751.651aa5c4@kernel.org/ Signed-off-by: Ivan Delalande <colona@arista.com> Link: https://patch.msgid.link/20260918224715.GA654128@visor Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
d8b6529e80
commit
4eb3f195ef
1 changed files with 7 additions and 4 deletions
Loading…
Add table
Add a link
Reference in a new issue