]> git.baikalelectronics.ru Git - kernel.git/commit
net: mvpp2: fallback using h/w and random mac if the dt one isn't valid
authorAntoine Tenart <antoine.tenart@free-electrons.com>
Sat, 2 Sep 2017 09:06:49 +0000 (11:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Sep 2017 03:16:55 +0000 (20:16 -0700)
commita5c63c0050bdebac6f867f21183fbf80c1eaf735
tree1ce56c330ce8a96fc55fd4eee29261231e55ca5e
parentd2b1d678e121db7bf8fb4b9b1f16ec0ea2950c3b
net: mvpp2: fallback using h/w and random mac if the dt one isn't valid

When using a mac address described in the device tree, a check is made
to see if it is valid. When it's not, no fallback is defined. This
patches tries to get the mac address from h/w (or use a random one if
the h/w one isn't valid) when the dt mac address isn't valid.

Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2.c