summaryrefslogtreecommitdiff
path: root/drivers/net/bnx2x
diff options
context:
space:
mode:
authorYaniv Rosner <yaniv.rosner@broadcom.com>2010-09-01 13:51:23 +0400
committerDavid S. Miller <davem@davemloft.net>2010-09-01 21:44:32 +0400
commit54c2fb785965a666a3e79dda16896801dfcf34e9 (patch)
tree67e531d8da0ae68984a4e00dc4575a4ffef5fe34 /drivers/net/bnx2x
parenteb80ce740a7e1deda5bedb9b5df876ce84ac5bc2 (diff)
downloadlinux-54c2fb785965a666a3e79dda16896801dfcf34e9.tar.xz
bnx2x: Reset link before any new link settings
Reset link before any new link settings to avoid potential link issue caused by previous link settings Signed-off-by: Yaniv Rosner <yanivr@broadcom.com> Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2x')
-rw-r--r--drivers/net/bnx2x/bnx2x_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/bnx2x/bnx2x_main.c b/drivers/net/bnx2x/bnx2x_main.c
index 7fb9a61a73c7..b09fa04cbc1d 100644
--- a/drivers/net/bnx2x/bnx2x_main.c
+++ b/drivers/net/bnx2x/bnx2x_main.c
@@ -1292,6 +1292,7 @@ void bnx2x_link_set(struct bnx2x *bp)
{
if (!BP_NOMCP(bp)) {
bnx2x_acquire_phy_lock(bp);
+ bnx2x_link_reset(&bp->link_params, &bp->link_vars, 1);
bnx2x_phy_init(&bp->link_params, &bp->link_vars);
bnx2x_release_phy_lock(bp);