sfc: Wait for the link to stay up before running loopback selftest
authorSteve Hodgson <shodgson@solarflare.com>
Tue, 1 Jun 2010 11:18:28 +0000 (11:18 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Jun 2010 09:21:07 +0000 (02:21 -0700)
commit901d3fe848d8c34988699592c9f4b98c2ce10a8b
tree4b5e6a1930da8155d131b2ad9c774f929d2d6f21
parentcffe9d4cdafdffa840abeb55c50fd2df2d7b0cdb
sfc: Wait for the link to stay up before running loopback selftest

It's been observed that some phys (such as the qt2025c) can
do down-up-down-up transitions, presumably as pcs block lock
settles down.

The loopback selftest will start sending data immediately
after the link comes up. Work around this by waiting for
the link state to stay up for two consecutive polls, rather
than one.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/sfc/selftest.c
This page took 0.025293 seconds and 5 git commands to generate.