From: Yinghai Lu Date: Thu, 15 Jan 2015 22:21:49 +0000 (-0600) Subject: PCI: Add pci_bus_clip_resource() to clip to fit upstream window X-Git-Tag: fixes-v4.0-rc1~256^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f7e7aee2f37119a32e6e8b63250922442528961;p=pandora-kernel.git PCI: Add pci_bus_clip_resource() to clip to fit upstream window Add pci_bus_clip_resource(). If a PCI-PCI bridge window overlaps an upstream bridge window but is not completely contained by it, this clips the downstream window so it fits inside the upstream one. No functional change (this adds the function but no callers). [bhelgaas: changelog, split into separate patch] Link: https://bugzilla.kernel.org/show_bug.cgi?id=85491 Reported-by: Marek Kordik Fixes: 5b28541552ef ("PCI: Restrict 64-bit prefetchable bridge windows to 64-bit resources") Signed-off-by: Yinghai Lu Signed-off-by: Bjorn Helgaas CC: stable@vger.kernel.org # v3.16+ --- Reading git-diff-tree failed