@@ -1643,6 +1643,8 @@ static int only_one_child(struct pci_bus *bus)
{
struct pci_dev *parent = bus->self;
+ if (bus->is_pcierc)
+ return 1;
if (!parent || !pci_is_pcie(parent))
return 0;
if (pci_pcie_type(parent) == PCI_EXP_TYPE_ROOT_PORT)
@@ -473,6 +473,7 @@ struct pci_bus {
struct bin_attribute *legacy_io; /* legacy I/O for this bus */
struct bin_attribute *legacy_mem; /* legacy mem */
unsigned int is_added:1;
+ unsigned int is_pcierc:1;
};
#define to_pci_bus(n) container_of(n, struct pci_bus, dev)