diff options
author | Petr Štetiar <[email protected]> | 2019-05-03 16:27:06 +0200 |
---|---|---|
committer | David S. Miller <[email protected]> | 2019-05-05 21:47:07 -0700 |
commit | d01f449c008a3f41fa44c603e28a7452ab8f8e68 (patch) | |
tree | 5494aee8663654b70f4c5bdd85fbd2f270d24662 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf | |
parent | 8ef5cc4f3c12dfb2fde74762feaff13c0d6b685c (diff) |
of_net: add NVMEM support to of_get_mac_address
Many embedded devices have information such as MAC addresses stored
inside NVMEMs like EEPROMs and so on. Currently there are only two
drivers in the tree which benefit from NVMEM bindings.
Adding support for NVMEM into every other driver would mean adding a lot
of repetitive code. This patch allows us to configure MAC addresses in
various devices like ethernet and wireless adapters directly from
of_get_mac_address, which is already used by almost every driver in the
tree.
Predecessor of this patch which used directly MTD layer has originated
in OpenWrt some time ago and supports already about 497 use cases in 357
device tree files.
Cc: Alban Bedel <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>
Signed-off-by: John Crispin <[email protected]>
Signed-off-by: Petr Štetiar <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf')
0 files changed, 0 insertions, 0 deletions