]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Nov 2020 11:36:02 +0000 (12:36 +0100)
commit8069a08d35b72e16486a6a81eb06f964b2e1432b
tree828ffd804b308ecb9888a1bfb0170d9d46dcbcea
parent3ab5872df9211447be82d0b01a2ec5731aa20621
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>
include/net/dsa.h
net/dsa/dsa2.c
net/dsa/slave.c