]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit55cb8dc1f0665bea1d7735c9954e4463a54406c4
tree11fece823acfc65b589e51a5c78e5339912808e4
parent39f0eb097bf16ef399b85127a3e290fa8a0df4e8
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