]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
PCI: Make resetting secondary bus logic common
authorGavin Shan <gwshan@linux.vnet.ibm.com>
Thu, 19 Jun 2014 07:22:44 +0000 (17:22 +1000)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 3 Jul 2014 22:39:14 +0000 (16:39 -0600)
commit9e33002fd1791bcab626b19301670484c1cb6d50
treec082812cab6251a1653550a81870a0fdad0bf627
parent7171511eaec5bf23fb06078f59784a3a0626b38f
PCI: Make resetting secondary bus logic common

Commit d92a208d086 ("powerpc/pci: Mask linkDown on resetting PCI bus")
implemented same logic (resetting PCI secondary bus by bridge's config
register PCI_BRIDGE_CTL_BUS_RESET) in PCI core and arch-dependent code.  To
avoid the duplication, move the logic to pci_reset_secondary_bus().

That commit did not declare the pcibios_reset_secondary_bus() interface in
linux/include/pci.h.  Add the declaration.

No functional change.

Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pci.c
include/linux/pci.h