bnx2x: Fix intermittent long KR2 link up time
authorYaniv Rosner <yanivr@broadcom.com>
Thu, 7 Mar 2013 13:27:33 +0000 (13:27 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Mar 2013 05:35:44 +0000 (00:35 -0500)
commit5f3347e6e75768985a088d959c49fb66263087b6
tree4c78b24ff9b1ee3efcdf20c1d458c70ca14a54b2
parent87ab7f6f2874f1115817e394a7ed2dea1c72549e
bnx2x: Fix intermittent long KR2 link up time

When a KR2 device is connected to a KR link-partner, sometimes it requires
disabling KR2 for the link to come up. To get a KR2 link up later, in case no
base pages are seen, the KR2 is restored. The problem was that some link
partners cleared their advertised BP/NP after around two seconds, causing the
driver to disable/enable KR2 link all the time.
The fix was to wait at least 5 seconds before checking KR2 recovery.

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>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c
drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.h