bnx2x: KR2 disablement fix
authorYaniv Rosner <yanivr@broadcom.com>
Sun, 22 Sep 2013 11:59:23 +0000 (14:59 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Sep 2013 06:10:19 +0000 (02:10 -0400)
commit4e4b14c9f861e19e560abb4a12eca971568639f5
tree4b63305fddcf850922cffa13f76242d8eeaa420a
parentb6a9c1ef3d82c1efb66340a27e810bad63e046ed
bnx2x: KR2 disablement fix

Relocate bnx2x_disable_kr2 function, and use it to disable KR2 in case it is not
configured in order to clear it's configuration, otherwise the link may come up
at 20G instead of the requested 10G-KR. In addition, restart AN after
disabling KR2 as part of the KR2 work-around.

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