bnx2x: Fix incorrect link-up report
authorYaniv Rosner <yanivr@broadcom.com>
Wed, 1 Jan 2014 09:06:44 +0000 (11:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Jan 2014 03:09:48 +0000 (22:09 -0500)
commitad1d9ef3f736485ba0f49325fa4c73cd1d963853
tree7751ab2dbbc040d0216f9202313fea94bc1c360b
parenta429ec239cbc42dd3b2bc9933745103ca71d2b9d
bnx2x: Fix incorrect link-up report

Fix a problem where link is reported to be up when SFP+ module is plugged in
without cable. This occurs with specific module types which may generate
temporary TX_FAULT indication. Solution is to avoid changing any link parameters
when checking TX_FAULT indication while physical link is down.

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