Commit f2692bd9 authored by Bjorn Helgaas's avatar Bjorn Helgaas

cxgb3: Use standard #defines for PCIe Capability ASPM fields

Use the standard #defines rather than bare numbers for PCIe Capability
ASPM fields.
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Acked-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 75083206
...@@ -3307,7 +3307,7 @@ static void config_pcie(struct adapter *adap) ...@@ -3307,7 +3307,7 @@ static void config_pcie(struct adapter *adap)
G_NUMFSTTRNSEQRX(t3_read_reg(adap, A_PCIE_MODE)); G_NUMFSTTRNSEQRX(t3_read_reg(adap, A_PCIE_MODE));
log2_width = fls(adap->params.pci.width) - 1; log2_width = fls(adap->params.pci.width) - 1;
acklat = ack_lat[log2_width][pldsize]; acklat = ack_lat[log2_width][pldsize];
if (val & 1) /* check LOsEnable */ if (val & PCI_EXP_LNKCTL_ASPM_L0S) /* check LOsEnable */
acklat += fst_trn_tx * 4; acklat += fst_trn_tx * 4;
rpllmt = rpl_tmr[log2_width][pldsize] + fst_trn_rx * 4; rpllmt = rpl_tmr[log2_width][pldsize] + fst_trn_rx * 4;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment