PCI: Init PCIe feature bits for managed host bridge alloc
authorJean-Philippe Brucker <jean-philippe.brucker@arm.com>
Mon, 18 Mar 2019 16:07:18 +0000 (16:07 +0000)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 5 Apr 2019 22:45:39 +0000 (17:45 -0500)
commit6302bf3ef78dd210b5ff4a922afcb7d8eff8a211
tree0ce775e3c498ae04fa0905ddcb909169d78b6068
parent9e98c678c2d6ae3a17cb2de55d17f69dddaa231b
PCI: Init PCIe feature bits for managed host bridge alloc

Two functions allocate a host bridge: devm_pci_alloc_host_bridge() and
pci_alloc_host_bridge().  At the moment, only the unmanaged one initializes
the PCIe feature bits, which prevents from using features such as hotplug
or AER on some systems, when booting with device tree.  Make the
initialization code common.

Fixes: 02bfeb484230 ("PCI/portdrv: Simplify PCIe feature permission checking")
Signed-off-by: Jean-Philippe Brucker <jean-philippe.brucker@arm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
CC: stable@vger.kernel.org # v4.17+
drivers/pci/probe.c