Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 73611
b: refs/heads/master
c: 5f5c51e
h: refs/heads/master
i:
  73609: 99bd1fc
  73607: 86f34b3
v: v3
  • Loading branch information
Matt Carlson authored and David S. Miller committed Nov 13, 2007
1 parent 1e3ab30 commit 0eb681f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 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: aa6c91fe5913faa2cd2a62de993a3130799412b1
refs/heads/master: 5f5c51e3d473d8ddc0c32156c2b27e2fe92b9b57
8 changes: 7 additions & 1 deletion trunk/drivers/net/tg3.c
Original file line number Diff line number Diff line change
Expand Up @@ -5098,12 +5098,15 @@ static void tg3_restore_pci_state(struct tg3 *tp)

pci_write_config_word(tp->pdev, PCI_COMMAND, tp->pci_cmd);

if (!(tp->tg3_flags2 & TG3_FLG2_PCI_EXPRESS)) {
if (tp->tg3_flags2 & TG3_FLG2_PCI_EXPRESS)
pcie_set_readrq(tp->pdev, 4096);
else {
pci_write_config_byte(tp->pdev, PCI_CACHE_LINE_SIZE,
tp->pci_cacheline_sz);
pci_write_config_byte(tp->pdev, PCI_LATENCY_TIMER,
tp->pci_lat_timer);
}

/* Make sure PCI-X relaxed ordering bit is clear. */
if (tp->pcix_cap) {
u16 pcix_cmd;
Expand Down Expand Up @@ -11215,6 +11218,9 @@ static int __devinit tg3_get_invariants(struct tg3 *tp)
pcie_cap = pci_find_capability(tp->pdev, PCI_CAP_ID_EXP);
if (pcie_cap != 0) {
tp->tg3_flags2 |= TG3_FLG2_PCI_EXPRESS;

pcie_set_readrq(tp->pdev, 4096);

if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5906) {
u16 lnkctl;

Expand Down

0 comments on commit 0eb681f

Please sign in to comment.