Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 159303
b: refs/heads/master
c: 88e7b76
h: refs/heads/master
i:
  159301: 24a0a48
  159299: 58971d7
  159295: 3a34d69
v: v3
  • Loading branch information
Divy Le Ray authored and David S. Miller committed Aug 2, 2009
1 parent d86a8ec commit 5ec1896
Show file tree
Hide file tree
Showing 2 changed files with 13 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: 9450526ac7bd74edf1ee030841d8078c6db6ca0b
refs/heads/master: 88e7b76ef7cf939a0cf23a1902030211b20837fe
13 changes: 12 additions & 1 deletion trunk/drivers/net/cxgb3/t3_hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -3465,14 +3465,25 @@ static void config_pcie(struct adapter *adap)
{201, 321, 258, 450, 834, 1602}
};

u16 val;
u16 val, devid;
unsigned int log2_width, pldsize;
unsigned int fst_trn_rx, fst_trn_tx, acklat, rpllmt;

pci_read_config_word(adap->pdev,
adap->params.pci.pcie_cap_addr + PCI_EXP_DEVCTL,
&val);
pldsize = (val & PCI_EXP_DEVCTL_PAYLOAD) >> 5;

pci_read_config_word(adap->pdev, 0x2, &devid);
if (devid == 0x37) {
pci_write_config_word(adap->pdev,
adap->params.pci.pcie_cap_addr +
PCI_EXP_DEVCTL,
val & ~PCI_EXP_DEVCTL_READRQ &
~PCI_EXP_DEVCTL_PAYLOAD);
pldsize = 0;
}

pci_read_config_word(adap->pdev,
adap->params.pci.pcie_cap_addr + PCI_EXP_LNKCTL,
&val);
Expand Down

0 comments on commit 5ec1896

Please sign in to comment.