r8152: Use MAC address from device tree if available
authorThierry Reding <treding@nvidia.com>
Thu, 14 May 2020 12:38:48 +0000 (14:38 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 May 2020 20:16:38 +0000 (13:16 -0700)
commitacb6d3771a0390fdfae18082f232fda40d5ab514
tree6f31a0c72f908a8b1dd3384703e4b81630d40feb
parent0531b0357ba37464e5c0033e1b7c69bbf5ecd8fb
r8152: Use MAC address from device tree if available

If a MAC address was passed via the device tree node for the r8152
device, use it and fall back to reading from EEPROM otherwise. This is
useful for devices where the r8152 EEPROM was not programmed with a
valid MAC address, or if users want to explicitly set a MAC address in
the bootloader and pass that to the kernel.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c