Skip to content

Commit 9cf74eb

Browse files
Matt Carlsondavem330
authored andcommitted
tg3: Limit CLKREQ fix to A[01] of 57780 asic rev
This patch restricts the CLKREQ bugfix to the A0 and A1 revisions of 57780 ASIC rev chips. Signed-off-by: Matt Carlson <mcarlson@broadcom.com> Signed-off-by: Michael Chan <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 8d519ab commit 9cf74eb

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

‎drivers/net/tg3.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11992,7 +11992,8 @@ static int __devinit tg3_get_invariants(struct tg3 *tp)
1199211992
tp->tg3_flags2 &= ~TG3_FLG2_HW_TSO_2;
1199311993
if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5784 ||
1199411994
GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5761 ||
11995-
GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_57780)
11995+
tp->pci_chip_rev_id == CHIPREV_ID_57780_A0 ||
11996+
tp->pci_chip_rev_id == CHIPREV_ID_57780_A1)
1199611997
tp->tg3_flags3 |= TG3_FLG3_CLKREQ_BUG;
1199711998
}
1199811999
} else if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5785) {

‎drivers/net/tg3.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@
9595
#define CHIPREV_ID_5752_A1 0x6001
9696
#define CHIPREV_ID_5714_A2 0x9002
9797
#define CHIPREV_ID_5906_A1 0xc001
98+
#define CHIPREV_ID_57780_A0 0x57780000
99+
#define CHIPREV_ID_57780_A1 0x57780001
98100
#define GET_ASIC_REV(CHIP_REV_ID) ((CHIP_REV_ID) >> 12)
99101
#define ASIC_REV_5700 0x07
100102
#define ASIC_REV_5701 0x00

0 commit comments

Comments
 (0)