]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
PCI/P2PDMA: Factor out host_bridge_whitelist()
authorLogan Gunthorpe <logang@deltatee.com>
Mon, 12 Aug 2019 17:30:40 +0000 (11:30 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 16 Aug 2019 13:40:59 +0000 (08:40 -0500)
commit2c84d818aee976390c055a417045a85c23d39662
tree1bcaf4b434c752f5caca6d6af8bc659962bdb678
parente2cbfbf78968db3e3a71cb989af17f4f6448bf49
PCI/P2PDMA: Factor out host_bridge_whitelist()

Push both PCI devices into the whitelist checking function seeing some
hardware will require us ensuring they are on the same host bridge.

At the same time we rename root_complex_whitelist() to
host_bridge_whitelist() to match the terminology used in the code.

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