]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9b1909fdc688a6c6ccbbd420c5b1d9995fa06603
tree4b5e6a1930da8155d131b2ad9c774f929d2d6f21
parent873c77270d7664aecc33300259c1388bff1f9fed
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