Skip to content
Snippets Groups Projects
Commit 136ab0d0 authored by Noam Camus's avatar Noam Camus Committed by David S. Miller
Browse files

net: nps_enet: Fix PCS reset


During commit b54b8c2d
 ("net: ezchip: adapt driver to little endian architecture")
 adapting to little endian architecture,
 zeroing of controller was left out.

Signed-off-by: default avatarElad Kanfi <eladkan@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 92a03eb0
Branches
Tags
No related merge requests found
......@@ -285,6 +285,7 @@ static void nps_enet_hw_reset(struct net_device *ndev)
ge_rst_value |= NPS_ENET_ENABLE << RST_GMAC_0_SHIFT;
nps_enet_reg_set(priv, NPS_ENET_REG_GE_RST, ge_rst_value);
usleep_range(10, 20);
ge_rst_value = 0;
nps_enet_reg_set(priv, NPS_ENET_REG_GE_RST, ge_rst_value);
/* Tx fifo reset sequence */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment