bnx2x: Enable FC when parallel-detect is used
authorYaniv Rosner <yanivr@broadcom.com>
Thu, 5 Nov 2009 17:18:12 +0000 (19:18 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Nov 2009 04:00:35 +0000 (20:00 -0800)
commit15ddd2d0ef4849410a2251587b3652fe6a689fda
tree4964565c9e2f4bf350cc2774f29424c17028eac6
parentd5cb9e997708bd48d2ed3dd926dad7a6fc83bf56
bnx2x: Enable FC when parallel-detect is used

When parallel detect is used, flow-control is set to the
req_fc_auto_adv instead of none.

Motive: when 577xx is FC configuration is set to AUTO, while LP speed
is set to FORCE mode and FC to force RX/TX, link would come up using
parallel detect, and the FC will be set to NONE since FC capabilities
were not negotiated, although the LP is setting FC to force RX/TX.

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/bnx2x_link.c
drivers/net/bnx2x_reg.h