bnx2x: Fix 578xx-KR 1G link
authorYaniv Rosner <yanivr@broadcom.com>
Wed, 1 Jan 2014 09:06:41 +0000 (11:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Jan 2014 03:09:47 +0000 (22:09 -0500)
commitb899e698fca1de16921525e347f6e81539fdedcf
tree995c63f6bb5056dfeff4fcd8ab6878e9c735b8a9
parent8d88bbffcbac2e7ceba04a9cdff97241b6b5f1db
bnx2x: Fix 578xx-KR 1G link

Fix a problem where 578xx-KR is unable to get link when connected to 1G link
partner. Two fixes were required:
One was to force CL37 sync_status low to prevent Warpcore from getting stuck in
CL73 parallel detect loop while link partner is sending.
Second fix was to enable auto-detect mode, thus allowing the Warpcore to select
the higher speed protocol between 10G-KR (over CL73), or go down to 1G over CL73
when there's indication for it.

Signed-off-by: Yaniv Rosner <yanivr@broadcom.com>
Signed-off-by: Ariel Elior <ariele@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_reg.h