Commit 925b151e authored by David S. Miller's avatar David S. Miller

[TG3]: Do not write stats coalescing ticks reg on 5705/5750.

parent f91642f9
...@@ -2098,11 +2098,14 @@ static int tg3_setup_phy(struct tg3 *tp, int force_reset) ...@@ -2098,11 +2098,14 @@ static int tg3_setup_phy(struct tg3 *tp, int force_reset)
(6 << TX_LENGTHS_IPG_SHIFT) | (6 << TX_LENGTHS_IPG_SHIFT) |
(32 << TX_LENGTHS_SLOT_TIME_SHIFT))); (32 << TX_LENGTHS_SLOT_TIME_SHIFT)));
if (netif_carrier_ok(tp->dev)) { if (GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5705 &&
tw32(HOSTCC_STAT_COAL_TICKS, GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5750) {
DEFAULT_STAT_COAL_TICKS); if (netif_carrier_ok(tp->dev)) {
} else { tw32(HOSTCC_STAT_COAL_TICKS,
tw32(HOSTCC_STAT_COAL_TICKS, 0); DEFAULT_STAT_COAL_TICKS);
} else {
tw32(HOSTCC_STAT_COAL_TICKS, 0);
}
} }
return err; return err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment