net: dsa: read mac address from DT for slave device
authorXiaofei Shen <xiaofeis@codeaurora.org>
Fri, 29 Mar 2019 05:34:58 +0000 (11:04 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 Apr 2019 21:57:32 +0000 (14:57 -0700)
commita2c7023f7075ca9b80f944d3f20f60e6574538e2
treef233ec3606dfa952650e02d2743fed1fa74f83bd
parentf5d547676ca068e10934687f59ac1e798eaae87a
net: dsa: read mac address from DT for slave device

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>
include/net/dsa.h
net/dsa/dsa2.c
net/dsa/slave.c