Skip to content

Commit 7196cd6

Browse files
Matt Carlsondavem330
Matt Carlson
authored andcommitted
tg3: Add braces around 5906 workaround.
Commit dabc5c6, entitled "tg3: Move TSO_CAPABLE assignment", moved some TSO flagging code around. In the process it failed to add braces around an exceptional 5906 condition. This patch fixes the problem. Signed-off-by: Matt Carlson <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent d542fe2 commit 7196cd6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/net/tg3.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13707,9 +13707,11 @@ static int __devinit tg3_get_invariants(struct tg3 *tp)
1370713707
tp->pcie_cap + PCI_EXP_LNKCTL,
1370813708
&lnkctl);
1370913709
if (lnkctl & PCI_EXP_LNKCTL_CLKREQ_EN) {
13710-
if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5906)
13710+
if (GET_ASIC_REV(tp->pci_chip_rev_id) ==
13711+
ASIC_REV_5906) {
1371113712
tg3_flag_clear(tp, HW_TSO_2);
1371213713
tg3_flag_clear(tp, TSO_CAPABLE);
13714+
}
1371313715
if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5784 ||
1371413716
GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5761 ||
1371513717
tp->pci_chip_rev_id == CHIPREV_ID_57780_A0 ||

0 commit comments

Comments
 (0)