]> git.karo-electronics.de Git - karo-tx-linux.git/commit
bnx2x: Generalize KR work-around
authorYaniv Rosner <yanivr@broadcom.com>
Sun, 22 Sep 2013 11:59:22 +0000 (14:59 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Sep 2013 06:10:19 +0000 (02:10 -0400)
commitb6a9c1ef3d82c1efb66340a27e810bad63e046ed
tree416f607453080e672d0fad13cf5c2945474db339
parentda7add323d1e00e867e4e8ef51789acdd1d749cd
bnx2x: Generalize KR work-around

Previously, in case of KR link down, the driver would reset the PHY and restart
auto negotiation only when old Warpcore microcode was used (below D108).
This patch comes to generalize this by keep trying to restart KR link,
regardless of Warpcore microcode, since it was found that it solves another link
issue which source is a link-partner. As part of this change, the signal
detect is no longer a condition to apply the work-around to cover this new case.
Like before, as long as the link is down, AN will be restarted every 2 seconds.

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