diff options
author | Wei Yang <weiyang@linux.vnet.ibm.com> | 2015-06-30 01:16:41 (GMT) |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2015-07-15 04:35:36 (GMT) |
commit | fff905f32966109d513ae17afc6fe39f1c76bb67 (patch) | |
tree | 551bd72002082fbd53f1156b98f1b6fc5d2d42ce /drivers/pci/pci.h | |
parent | ffb4d602623aef9eb813a35b87b20854c030a2ec (diff) | |
download | linux-fff905f32966109d513ae17afc6fe39f1c76bb67.tar.xz |
PCI: Move PCI_FIND_CAP_TTL to pci.h and use it in quirks
Some quirks search for a HyperTransport capability and use a hard-coded TTL
value of 48 to avoid an infinite loop.
Move the definition of PCI_FIND_CAP_TTL to pci.h and use it instead of the
hard-coded TTL values.
[bhelgaas: changelog]
Signed-off-by: Wei Yang <weiyang@linux.vnet.ibm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/pci.h')
-rw-r--r-- | drivers/pci/pci.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h index 4ff0ff1..24ba9dc 100644 --- a/drivers/pci/pci.h +++ b/drivers/pci/pci.h @@ -4,6 +4,8 @@ #define PCI_CFG_SPACE_SIZE 256 #define PCI_CFG_SPACE_EXP_SIZE 4096 +#define PCI_FIND_CAP_TTL 48 + extern const unsigned char pcie_link_speed[]; bool pcie_cap_has_lnkctl(const struct pci_dev *dev); |