Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 352518
b: refs/heads/master
c: 717ff72
h: refs/heads/master
v: v3
  • Loading branch information
Joe Perches authored and David S. Miller committed Feb 18, 2013
1 parent bb1eb1f commit daa1866
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 885d29941435e16dea6a52e42bbb3c8b87676bd8
refs/heads/master: 717ff727faa05958633e4e786f5b092c4bcf58e7
10 changes: 4 additions & 6 deletions trunk/drivers/net/ethernet/broadcom/tg3.c
Original file line number Diff line number Diff line change
Expand Up @@ -15761,12 +15761,10 @@ static int tg3_get_invariants(struct tg3 *tp, const struct pci_device_id *ent)
&pci_state_reg);
if ((pci_state_reg & PCISTATE_CONV_PCI_MODE) == 0 &&
!tg3_flag(tp, PCIX_TARGET_HWBUG)) {
u32 chiprevid = GET_CHIP_REV_ID(tp->misc_host_ctrl);

if (chiprevid == CHIPREV_ID_5701_A0 ||
chiprevid == CHIPREV_ID_5701_B0 ||
chiprevid == CHIPREV_ID_5701_B2 ||
chiprevid == CHIPREV_ID_5701_B5) {
if (tp->pci_chip_rev_id == CHIPREV_ID_5701_A0 ||
tp->pci_chip_rev_id == CHIPREV_ID_5701_B0 ||
tp->pci_chip_rev_id == CHIPREV_ID_5701_B2 ||
tp->pci_chip_rev_id == CHIPREV_ID_5701_B5) {
void __iomem *sram_base;

/* Write some dummy words into the SRAM status block
Expand Down
4 changes: 1 addition & 3 deletions trunk/drivers/net/ethernet/broadcom/tg3.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,7 @@
#define MISC_HOST_CTRL_TAGGED_STATUS 0x00000200
#define MISC_HOST_CTRL_CHIPREV 0xffff0000
#define MISC_HOST_CTRL_CHIPREV_SHIFT 16
#define GET_CHIP_REV_ID(MISC_HOST_CTRL) \
(((MISC_HOST_CTRL) & MISC_HOST_CTRL_CHIPREV) >> \
MISC_HOST_CTRL_CHIPREV_SHIFT)

#define CHIPREV_ID_5700_A0 0x7000
#define CHIPREV_ID_5700_A1 0x7001
#define CHIPREV_ID_5700_B0 0x7100
Expand Down

0 comments on commit daa1866

Please sign in to comment.