commit | 1d13a06e00bdcde27d4d88e011841ff0924b3dde | [log] [tgz] |
---|---|---|
author | Vivien Didelot <vivien.didelot@savoirfairelinux.com> | Mon May 09 13:22:43 2016 -0400 |
committer | David S. Miller <davem@davemloft.net> | Mon May 09 14:26:09 2016 -0400 |
tree | d8203ddf528779dc9735b5ba5bd1ca2824464bd5 | |
parent | 6594f615792a52ccb66c07000ade917e8c8f62fd [diff] |
net: dsa: mv88e6xxx: factorize MAC address setting Some switch models have a dedicated register for Switch MAC/WoF/WoL. This register, when present, is used to indirectly set the switch MAC address, instead of a direct write to 3 global registers. Identify this feature and share a common mv88e6xxx_set_addr function. Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Signed-off-by: David S. Miller <davem@davemloft.net>