net: mvpp2: fallback using h/w and random mac if the dt one isn't valid
commit688cbaf202df8b4a69f5ccd39e0027f179852d44
authorAntoine Tenart <antoine.tenart@free-electrons.com>
Sat, 2 Sep 2017 09:06:49 +0000 (2 11:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Sep 2017 03:16:55 +0000 (3 20:16 -0700)
tree1ce56c330ce8a96fc55fd4eee29261231e55ca5e
parentd2a6e48e5254f653decc1612f3cbee3e5c8592c7
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