]> git.baikalelectronics.ru Git - kernel.git/commit
net/faraday: Disallow using reversed MAC address from hardware
authorGavin Shan <gwshan@linux.vnet.ibm.com>
Thu, 21 Jul 2016 01:42:54 +0000 (11:42 +1000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Jul 2016 04:05:18 +0000 (21:05 -0700)
commitc3d792ec55906c4fe0d3c37727cef156c101a74a
tree335250940c09a3ac700bae1e9b20da68c44e388c
parentf44907af54a31b7f02575009ed2b3ce117822e4b
net/faraday: Disallow using reversed MAC address from hardware

The initial MAC address is retrieved from hardware if it's not
provided by device-tree. The reserved MAC address from hardware
will be used if non-reserved MAC address is invalid. It will
cause mismatched MAC address seen by hardware and software.

This disallows using the reserved hardware MAC address to avoid
the mismatched MAC address seen by hardware and software.

Fixes: cccb48007a79 ("net/faraday: Read MAC address from chip")
Suggested-by: David Laight <David.Laight@ACULAB.COM>
Suggested-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/faraday/ftgmac100.c