]> git.baikalelectronics.ru Git - kernel.git/commit
net: netcp: Fixes efuse mac addr swap on k2e and k2l
authorWingMan Kwok <w-kwok2@ti.com>
Tue, 28 Jul 2015 20:01:11 +0000 (16:01 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Jul 2015 00:16:03 +0000 (17:16 -0700)
commitc0468f2df9b53a233e5f7a8ba1787d34b04b4260
tree3bd48d0733189a16dd3cda96beca231defd5f08f
parent42269e15003d02b5b2181226788ecca078b2ed89
net: netcp: Fixes efuse mac addr swap on k2e and k2l

On some of the K2E and K2L platforms, the two DWORDs in
efuse occupied by the pre-programmed mac address for
slave port 1 are swapped.  To workaround this issue,
this patch adds a new define NETCP_EFUSE_ADDR_SWAP (2)
which signifies the occurrence of such swapping so that
the driver can take proper action.  The flag can be
enabled in the corresponding netcp interface dts binding
as efuse-mac = <2>  under the corresponding netcp
interface node.

Signed-off-by: WingMan Kwok <w-kwok2@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/devicetree/bindings/net/keystone-netcp.txt
drivers/net/ethernet/ti/netcp_core.c