]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2x: loopback test failure
authorEilon Greenstein <eilong@broadcom.com>
Thu, 22 Jan 2009 06:01:32 +0000 (06:01 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Jan 2009 21:47:12 +0000 (13:47 -0800)
commit004a1fa1c647267157c4c0d29253c8d5531c0edb
treef299416ca45f71484235a599d7ecff46e901fd4e
parent2dae8ef02a4e11d3ece30673a0611b49980537da
bnx2x: loopback test failure

A link change interrupt might be queued and activated after the loopback was set
and it will cause the loopback to fail. The PHY lock should be kept until the
loopback test is over.

That implies that the bnx2x_test_link should used within the loopback function
and not bnx2x_wait_for_link since that function also takes the PHY link

Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2x_main.c