]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6d02e5c0659c49482884fc64044578918fea349c
tree4b63305fddcf850922cffa13f76242d8eeaa420a
parent75fba419ac6387d08b515c6655539ee98116231a
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