summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/ti/netcp.h
diff options
context:
space:
mode:
authorWingMan Kwok <w-kwok2@ti.com>2015-07-24 15:02:29 -0400
committerDavid S. Miller <davem@davemloft.net>2015-07-27 01:14:26 -0700
commit7025e88a79d64aa4ba58fd03d630a78b12cce6ae (patch)
tree12fe777b60886a5ae2d00c82677c7e9ee455cd18 /drivers/net/ethernet/ti/netcp.h
parent54109da31f0bec407b419cebfb19c7d9f2a6e56a (diff)
downloadlinux-stable-7025e88a79d64aa4ba58fd03d630a78b12cce6ae.tar.gz
linux-stable-7025e88a79d64aa4ba58fd03d630a78b12cce6ae.tar.bz2
linux-stable-7025e88a79d64aa4ba58fd03d630a78b12cce6ae.zip
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>
Diffstat (limited to 'drivers/net/ethernet/ti/netcp.h')
-rw-r--r--drivers/net/ethernet/ti/netcp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/ti/netcp.h b/drivers/net/ethernet/ti/netcp.h
index bbacf5cccec2..a8a730641bbb 100644
--- a/drivers/net/ethernet/ti/netcp.h
+++ b/drivers/net/ethernet/ti/netcp.h
@@ -223,6 +223,7 @@ void *netcp_device_find_module(struct netcp_device *netcp_device,
/* SGMII functions */
int netcp_sgmii_reset(void __iomem *sgmii_ofs, int port);
+bool netcp_sgmii_rtreset(void __iomem *sgmii_ofs, int port, bool set);
int netcp_sgmii_get_port_link(void __iomem *sgmii_ofs, int port);
int netcp_sgmii_config(void __iomem *sgmii_ofs, int port, u32 interface);