bnx2x: 57840 non-external loopback test fail on 1G
authorYaniv Rosner <yanivr@broadcom.com>
Sun, 22 Sep 2013 11:59:24 +0000 (14:59 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Sep 2013 06:10:19 +0000 (02:10 -0400)
commit0afbd74a1608d9d9dcc8f806e36e283ec83e07d5
tree11fece823acfc65b589e51a5c78e5339912808e4
parent4e4b14c9f861e19e560abb4a12eca971568639f5
bnx2x: 57840 non-external loopback test fail on 1G

when 1G-optic module was plugged in, internal loopback test failed because the
driver used to check the optic module (with no need), and for 1G optic module,
the link speed was forced down to 1G, while the XMAC (10G MAC) was enabled.
This patch avoid accessing optic module in case internal loopback was selected,
and update the link speed in case 1G optic module was detected during init
stage.

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
This page took 0.025294 seconds and 5 git commands to generate.