From: Matt Carlson Date: Tue, 25 Jan 2011 15:58:52 +0000 (+0000) Subject: tg3: Fix loopback tests X-Git-Tag: v2.6.39-rc1~468^2~465 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49692ca1e686970bac5726c3fd925427bb3ae89d;p=pandora-kernel.git tg3: Fix loopback tests The half-duplex bit in the MAC MODE register will be set during the loopback test if the external link is in half-duplex mode. This will cause the loopback test to fail on newer devices. This patch turns the half-duplex bit off for the test. Also, newer devices fail the internal phy loopback test because the phy link takes a little while to come up. This patch adds code to wait for the link before proceeding with the test. Signed-off-by: Matt Carlson Reviewed-by: Michael Chan Signed-off-by: David S. Miller --- Reading git-diff-tree failed