summaryrefslogtreecommitdiff
path: root/include/net
diff options
context:
space:
mode:
authorXiaofei Shen <xiaofeis@codeaurora.org>2019-03-29 08:34:58 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-11-10 14:36:02 +0300
commit8069a08d35b72e16486a6a81eb06f964b2e1432b (patch)
tree828ffd804b308ecb9888a1bfb0170d9d46dcbcea /include/net
parent3ab5872df9211447be82d0b01a2ec5731aa20621 (diff)
downloadlinux-8069a08d35b72e16486a6a81eb06f964b2e1432b.tar.xz
net: dsa: read mac address from DT for slave device
commit a2c7023f7075ca9b80f944d3f20f60e6574538e2 upstream. Before creating a slave netdevice, get the mac address from DTS and apply in case it is valid. Signed-off-by: Xiaofei Shen <xiaofeis@codeaurora.org> Signed-off-by: Vinod Koul <vkoul@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net> Cc: Pali Rohár <pali@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/dsa.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h
index 461e8a7661b7..d28df7adf948 100644
--- a/include/net/dsa.h
+++ b/include/net/dsa.h
@@ -196,6 +196,7 @@ struct dsa_port {
unsigned int index;
const char *name;
const struct dsa_port *cpu_dp;
+ const char *mac;
struct device_node *dn;
unsigned int ageing_time;
u8 stp_state;