diff options
| author | Bjorn Andersson <[email protected]> | 2020-04-28 00:01:39 -0700 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2020-04-30 20:45:35 -0700 |
| commit | 78734404ef9c133eac70339415c8028dbe19109a (patch) | |
| tree | 7c09b9640abbe5fc752abe766d79ec5c6bffa206 /tools/perf/scripts/python | |
| parent | 97fff7c8de1e54e5326dfeb66085796864bceb64 (diff) | |
net: usb: ax88179_178a: Implement ethtool_ops set_eeprom
The vendor driver does upon failing to read a valid MAC address from
EEPROM write the netdev's address back to EEPROM and invoking a EEPROM
reload operation. Based on this we can implement the ethtool_ops
set_eeprom and provide the means to populate the EEPROM from within
Linux.
It's worth noting that ax88179_get_eeprom() will return some default
data unless the content of the EEPROM is deemed "complete", so until the
EEPROM is fully populated (e.g. by running ethtool -e | ethtool -E)
data written with ax88179_set_eeprom() will appear not to stick.
The implementation is based on asix_set_eeprom(), from asix_common.c
Signed-off-by: Bjorn Andersson <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions