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)
commit04c7788c2bb3542e5c8c9d7175193e4d925edf20
treeee5bbafbd0f92b20572aaca7ddcef53cbbfa5ee5
parentc53f59d4b24daa8bf8bd079781c9e1e1896b6dee
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