]> git.baikalelectronics.ru Git - kernel.git/commit
r8169: Load MAC address from device tree if present
authorThierry Reding <treding@nvidia.com>
Wed, 6 Feb 2019 12:30:17 +0000 (13:30 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Feb 2019 21:40:08 +0000 (13:40 -0800)
commitd5d72a9496565db7a492cdec5ed8a2230c67522e
treeee5bbafbd0f92b20572aaca7ddcef53cbbfa5ee5
parent88b41087e2f81fbd0f2bbc7036fb3856bc2ff986
r8169: Load MAC address from device tree if present

If the system was booted using a device tree and if the device tree
contains a MAC address, use it instead of reading one from the EEPROM.
This is useful in situations where the EEPROM isn't properly programmed
or where the firmware wants to override the existing MAC address.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Reviewed-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169.c