]> 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)
commit375dabd4755a3b2aba574f27096c536a011326e7
treef233ec3606dfa952650e02d2743fed1fa74f83bd
parent4d0b9a5ad7fd44783ffaffaf0708ab4262e8da74
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