summaryrefslogtreecommitdiffstats
path: root/drivers/staging/fsl-dpaa2/Makefile
diff options
context:
space:
mode:
authorIoana Ciornei <ioana.ciornei@nxp.com>2020-07-14 16:34:31 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-07-15 16:22:36 +0200
commit240cb8de112eb21543450b98dc88b7ec2e9869cb (patch)
tree19f5d722e07c05d46e7eb3e98a9a2a3638d6e662 /drivers/staging/fsl-dpaa2/Makefile
parent3b9c7029a7d6ee0876c5481db11947d57792cdd5 (diff)
downloadlinux-240cb8de112eb21543450b98dc88b7ec2e9869cb.tar.gz
linux-240cb8de112eb21543450b98dc88b7ec2e9869cb.tar.bz2
linux-240cb8de112eb21543450b98dc88b7ec2e9869cb.zip
staging: dpaa2-ethsw: setup MAC address of switch netdevices
At probe time, retrieve the MAC addresses of the switch ports using a firmware call and use that to setup the switch interface net_device instead of relying entirely on the user to configure a MAC address on the interface. In case a switch interface is not connected to a MAC, thus the dpsw_if_get_port_mac_addr() will return all zeroes, generate a random MAC address and use that. This new functionality is dependent on a firmware call which is available only on newer versions, so depending on the running DPSW object version skip this step. Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com> Link: https://lore.kernel.org/r/20200714133431.17532-7-ioana.ciornei@nxp.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/fsl-dpaa2/Makefile')
0 files changed, 0 insertions, 0 deletions