]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Export pcie_flr()
authorChristoph Hellwig <hch@lst.de>
Fri, 14 Apr 2017 19:11:25 +0000 (21:11 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 20 Apr 2017 13:53:51 +0000 (08:53 -0500)
commitb0c9d7f8305d9af3ac92386f45bdadaceda386ea
tree6706049eb35599d6fbf49577f7ca451c66b757f2
parent41f6a806c00267d0996e5217709aca428cd4b44e
PCI: Export pcie_flr()

Currently we opencode the FLR sequence in lots of place; export a core
helper instead.  We split out the probing for FLR support as all the
non-core callers already know their hardware.

Note that in the new pci_has_flr() function the quirk check has been moved
before the capability check as there is no point in reading the capability
in this case.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pci.c
include/linux/pci.h