]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7b49df75342b23a229555e5065fa7cecb93b029b
treef233ec3606dfa952650e02d2743fed1fa74f83bd
parent3490dee110d7a049e60122940cd6dfc11fc19e55
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