tree 683f6e32186ea6e62dcb1647b05ab3ceb0d8de6c parent 863925f59e5425e4af6996b9c50857c766940176 author John W. Linville <[EMAIL PROTECTED]> Fri, 22 Apr 2005 07:02:41 -0700 committer David S. Miller <[EMAIL PROTECTED]> Fri, 22 Apr 2005 07:02:41 -0700
[TG3]: use TG3_FLG2_57{05,50}_PLUS flags in tg3_get_invariants Rewrite checks in tg3_get_invariants to use TG3_FLG2_5705_PLUS and TG3_FLG2_5750_PLUS flags. Signed-off-by: John W. Linville <[EMAIL PROTECTED]> Signed-off-by: David S. Miller <[EMAIL PROTECTED]> net/tg3.c | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-) Index: drivers/net/tg3.c =================================================================== --- 217e33fff2291c22617665bd30b4d8fd6ea5f0ee/drivers/net/tg3.c (mode:100644 sha1:46f8da6fc116907de956f6bdfb5cba7eca1fb4ea) +++ 683f6e32186ea6e62dcb1647b05ab3ceb0d8de6c/drivers/net/tg3.c (mode:100644 sha1:f47b30569192e0c7de02946b50cfdd05886d0f9c) @@ -7937,8 +7937,7 @@ static int __devinit tg3_get_invariants( GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5752) tp->tg3_flags2 |= TG3_FLG2_5750_PLUS; - if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5750 || - GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5752) + if (tp->tg3_flags2 & TG3_FLG2_5750_PLUS) tp->tg3_flags2 |= TG3_FLG2_HW_TSO; if (pci_find_capability(tp->pdev, PCI_CAP_ID_EXP) != 0) @@ -8068,9 +8067,7 @@ static int __devinit tg3_get_invariants( if (tp->pci_chip_rev_id == CHIPREV_ID_5704_A0) tp->tg3_flags2 |= TG3_FLG2_PHY_5704_A0_BUG; - if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5705 || - GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5750 || - GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5752) + if (tp->tg3_flags2 & TG3_FLG2_5705_PLUS) tp->tg3_flags2 |= TG3_FLG2_PHY_BER_BUG; /* Only 5701 and later support tagged irq status mode. - To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html