Commit 2866d956 authored by Matt Carlson's avatar Matt Carlson Committed by David S. Miller

tg3: Expand 5719 workaround

As a precautionary measure, expand the fix submitted in commit
4d163b75 entitled "tg3: Fix 5719 A0 tx
completion bug" to apply to all 5719 revisions.
Signed-off-by: default avatarMatt Carlson <mcarlson@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6431cbc2
...@@ -13318,7 +13318,7 @@ static int __devinit tg3_get_invariants(struct tg3 *tp) ...@@ -13318,7 +13318,7 @@ static int __devinit tg3_get_invariants(struct tg3 *tp)
} }
/* Determine TSO capabilities */ /* Determine TSO capabilities */
if (tp->pci_chip_rev_id == CHIPREV_ID_5719_A0) if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5719)
; /* Do nothing. HW bug. */ ; /* Do nothing. HW bug. */
else if (tp->tg3_flags3 & TG3_FLG3_5717_PLUS) else if (tp->tg3_flags3 & TG3_FLG3_5717_PLUS)
tp->tg3_flags2 |= TG3_FLG2_HW_TSO_3; tp->tg3_flags2 |= TG3_FLG2_HW_TSO_3;
...@@ -13372,7 +13372,7 @@ static int __devinit tg3_get_invariants(struct tg3 *tp) ...@@ -13372,7 +13372,7 @@ static int __devinit tg3_get_invariants(struct tg3 *tp)
} }
if ((tp->tg3_flags3 & TG3_FLG3_5717_PLUS) && if ((tp->tg3_flags3 & TG3_FLG3_5717_PLUS) &&
tp->pci_chip_rev_id != CHIPREV_ID_5719_A0) GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5719)
tp->tg3_flags3 |= TG3_FLG3_USE_JUMBO_BDFLAG; tp->tg3_flags3 |= TG3_FLG3_USE_JUMBO_BDFLAG;
if (!(tp->tg3_flags2 & TG3_FLG2_5705_PLUS) || if (!(tp->tg3_flags2 & TG3_FLG2_5705_PLUS) ||
......
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