Skip to content

Commit

Permalink
bnx2x: Don't set netdev->trans_start
Browse files Browse the repository at this point in the history
Setting dev->trans_start caused spurious watchdog warnings.

Signed-off-by: Vladislav Zolotarov <vladz@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Vladislav Zolotarov authored and David S. Miller committed Nov 18, 2009
1 parent e014deb commit 9a4e328
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/net/bnx2x_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2557,7 +2557,6 @@ static void bnx2x_e1h_disable(struct bnx2x *bp)
int port = BP_PORT(bp);

netif_tx_disable(bp->dev);
bp->dev->trans_start = jiffies; /* prevent tx timeout */

REG_WR(bp, NIG_REG_LLH0_FUNC_EN + port*8, 0);

Expand Down Expand Up @@ -7098,7 +7097,6 @@ static void bnx2x_netif_stop(struct bnx2x *bp, int disable_hw)
bnx2x_int_disable_sync(bp, disable_hw);
bnx2x_napi_disable(bp);
netif_tx_disable(bp->dev);
bp->dev->trans_start = jiffies; /* prevent tx timeout */
}

/*
Expand Down Expand Up @@ -10282,7 +10280,6 @@ static int bnx2x_run_loopback(struct bnx2x *bp, int loopback_mode, u8 link_up)

num_pkts++;
fp_tx->tx_bd_prod += 2; /* start + pbd */
bp->dev->trans_start = jiffies;

udelay(100);

Expand Down

0 comments on commit 9a4e328

Please sign in to comment.