commit | 688cbaf202df8b4a69f5ccd39e0027f179852d44 | [log] [tgz] |
---|---|---|
author | Antoine Tenart <antoine.tenart@free-electrons.com> | Sat Sep 02 11:06:49 2017 +0200 |
committer | David S. Miller <davem@davemloft.net> | Sun Sep 03 20:16:55 2017 -0700 |
tree | 1ce56c330ce8a96fc55fd4eee29261231e55ca5e | |
parent | d2a6e48e5254f653decc1612f3cbee3e5c8592c7 [diff] |
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>