Skip to content

Commit d4ef160

Browse files
Michael Chandavem330
authored andcommitted
[TG3]: Fix ethtool loopback test lockup
The tg3_abort_hw() call in tg3_test_loopback() is causing lockups on some devices. tg3_abort_hw() disables the memory arbiter, causing tg3_reset_hw() to hang when it tries to write the pre-reset signature. tg3_abort_hw() should only be called after the pre-reset signature has been written. This is all done in tg3_reset_hw() so the tg3_abort_hw() call is unnecessary and can be removed. [ Also bump driver version and release date. -DaveM ] Signed-off-by: Michael Chan <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 06c7427 commit d4ef160

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

drivers/net/tg3.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@
6666

6767
#define DRV_MODULE_NAME "tg3"
6868
#define PFX DRV_MODULE_NAME ": "
69-
#define DRV_MODULE_VERSION "3.36"
70-
#define DRV_MODULE_RELDATE "August 19, 2005"
69+
#define DRV_MODULE_VERSION "3.37"
70+
#define DRV_MODULE_RELDATE "August 25, 2005"
7171

7272
#define TG3_DEF_MAC_MODE 0
7373
#define TG3_DEF_RX_MODE 0
@@ -7865,8 +7865,6 @@ static int tg3_test_loopback(struct tg3 *tp)
78657865

78667866
err = -EIO;
78677867

7868-
tg3_abort_hw(tp, 1);
7869-
78707868
tg3_reset_hw(tp);
78717869

78727870
mac_mode = (tp->mac_mode & ~MAC_MODE_PORT_MODE_MASK) |

0 commit comments

Comments
 (0)