]> 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)
commitd83919ad1a2396a4690b4e11edd9c9e4f2d57dd1
tree11fece823acfc65b589e51a5c78e5339912808e4
parent6d02e5c0659c49482884fc64044578918fea349c
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