]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
PCI: Move PCI_FIND_CAP_TTL to pci.h and use it in quirks
authorWei Yang <weiyang@linux.vnet.ibm.com>
Tue, 30 Jun 2015 01:16:41 +0000 (09:16 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 15 Jul 2015 04:35:36 +0000 (23:35 -0500)
commitfff905f32966109d513ae17afc6fe39f1c76bb67
tree551bd72002082fbd53f1156b98f1b6fc5d2d42ce
parentffb4d602623aef9eb813a35b87b20854c030a2ec
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>
drivers/pci/pci.c
drivers/pci/pci.h
drivers/pci/quirks.c