PCI/P2PDMA: Factor out __upstream_bridge_distance()
authorLogan Gunthorpe <logang@deltatee.com>
Mon, 12 Aug 2019 17:30:38 +0000 (11:30 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 16 Aug 2019 13:40:38 +0000 (08:40 -0500)
commitc6bfaeb573a6caae4b96885b8bad63ee57495c77
tree651093f006955d278ee2d9cb0250e0bf39f1d2f2
parent72583084e3fe333c27bc37527efe455d27eaf0b1
PCI/P2PDMA: Factor out __upstream_bridge_distance()

This is a prep patch to create a second level helper. There are no
functional changes.

The root complex whitelist code will be moved into this function in a
subsequent patch.

Link: https://lore.kernel.org/r/20190730163545.4915-5-logang@deltatee.com
Link: https://lore.kernel.org/r/20190812173048.9186-5-logang@deltatee.com
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
drivers/pci/p2pdma.c