]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Pass bridge device, not bus, when updating bridge windows
authorYinghai Lu <yinghai@kernel.org>
Thu, 15 Jan 2015 16:22:31 +0000 (10:22 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 16 Jan 2015 16:04:42 +0000 (10:04 -0600)
commitb967f2e6b5c231acf8b95295b666f1b0c9111bca
treeff641c8556fcf0715d77a11007d8a4a32d687894
parent7cc1ec1e8b65d368cff00fe828e5ddb18fe4a45f
PCI: Pass bridge device, not bus, when updating bridge windows

pci_setup_bridge_io(), pci_setup_bridge_mmio(), and
pci_setup_bridge_mmio_pref() program the windows of PCI-PCI bridges.
Previously they accepted a pointer to the pci_bus of the secondary bus,
then looked up the bridge leading to that bus.  Pass the bridge directly,
which will make it more convenient for future callers.

No functional change.

[bhelgaas: changelog, split into separate patch]
Link: https://bugzilla.kernel.org/show_bug.cgi?id=85491
Reported-by: Marek Kordik <kordikmarek@gmail.com>
Fixes: 2de411c7db91 ("PCI: Restrict 64-bit prefetchable bridge windows to 64-bit resources")
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
CC: stable@vger.kernel.org # v3.16+
drivers/pci/setup-bus.c