]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite47ec0855ba98b22b9f29131ae22a041bb1be455
tree6f31a0c72f908a8b1dd3384703e4b81630d40feb
parent057e9dc1acae3270be6ea376100a025dbcd965f1
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