net: netcp: Fixes SGMII reset on network interface shutdown
authorWingMan Kwok <w-kwok2@ti.com>
Fri, 24 Jul 2015 19:02:29 +0000 (15:02 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Jul 2015 08:14:26 +0000 (01:14 -0700)
commit7025e88a79d64aa4ba58fd03d630a78b12cce6ae
tree12fe777b60886a5ae2d00c82677c7e9ee455cd18
parent54109da31f0bec407b419cebfb19c7d9f2a6e56a
net: netcp: Fixes SGMII reset on network interface shutdown

This patch asserts SGMII RTRESET, i.e. resetting the SGMII Tx/Rx
logic,  during network interface shutdown to avoid having the
hardware wedge when shutting down with high incoming traffic rates.
This is cleared (brought out of RTRESET) when the interface is
brought back up.

Signed-off-by: WingMan Kwok <w-kwok2@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/netcp.h
drivers/net/ethernet/ti/netcp_ethss.c
drivers/net/ethernet/ti/netcp_sgmii.c