diff options
author | Thierry Reding <treding@nvidia.com> | 2020-08-07 09:36:32 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-08-07 17:13:52 -0700 |
commit | b9b40ee4db6cb186341b97bca4f0d7aa2a042a66 (patch) | |
tree | 549274461a368663c469f2e9388addfed97da03a /tools | |
parent | c7ca03c216acb14466a713fedf1b9f2c24994ef2 (diff) |
r8152: Use MAC address from correct device tree node
Query the USB device's device tree node when looking for a MAC address.
The struct device embedded into the struct net_device does not have a
device tree node attached at all.
The reason why this went unnoticed is because the system where this was
tested was one of the few development units that had its OTP programmed,
as opposed to production systems where the MAC address is stored in a
separate EEPROM and is passed via device tree by the firmware.
Reported-by: EJ Hsu <ejh@nvidia.com>
Fixes: acb6d3771a03 ("r8152: Use MAC address from device tree if available")
Signed-off-by: Thierry Reding <treding@nvidia.com>
Reviewed-by: EJ Hsu <ejh@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions