[Arm-dev] [PATCH v0 04/20] pci: Add is_pcierc element to struct pci_bus
Vadim Lomovtsev
Vadim.Lomovtsev at caviumnetworks.comThu Jul 23 12:37:41 UTC 2015
- Previous message: [Arm-dev] [PATCH v0 03/20] arm64, gicv3, thunder: Add workaround for erratum AP-23154
- Next message: [Arm-dev] [PATCH v0 05/20] gic-its: Allow pci_requester_id to be overridden.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: David Daney <david.daney at cavium.com> ... and use is to force only_one_child() to return true. Needed because the ThunderX PCIe RC cannot be identified by existing methods. Signed-off-by: David Daney <david.daney at cavium.com> Signed-off-by: Vadim Lomovtsev <Vadim.Lomovtsev at caviumnetworks.com> --- drivers/pci/probe.c | 2 ++ include/linux/pci.h | 1 + 2 files changed, 3 insertions(+) diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index cefd636..11ec2e7 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c @@ -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) diff --git a/include/linux/pci.h b/include/linux/pci.h index 8a0321a..1f1ce73 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -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) -- 2.4.3
- Previous message: [Arm-dev] [PATCH v0 03/20] arm64, gicv3, thunder: Add workaround for erratum AP-23154
- Next message: [Arm-dev] [PATCH v0 05/20] gic-its: Allow pci_requester_id to be overridden.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Arm-dev mailing list