From 1bc151858c7607e18a810f9ea6f9324a5f10bbd5 Mon Sep 17 00:00:00 2001 From: Yao Chen Date: Wed, 28 Feb 2018 16:10:04 +0800 Subject: [PATCH] Drivers/PCIe: Fix the failure of enumerating devices under root subordinate Bugfix for the commit of a20c7f36bd3d ("PCI: Do not allocate more buses than available in parent").With this patch enumeration stops digging deeper downstream as soon as bus num 0x01 has been assigned, which is always the case for a bridge device.This results in all devices behind a bridge bus to remain undetected, as these would be connected to bus 0x02 or higher. Reference to https://patchwork.ozlabs.org/patch/857566/ Signed-off-by: Yao Chen --- drivers/pci/host/pcie-designware.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/host/pcie-designware.c b/drivers/pci/host/pcie-designware.c index af8f6e92e885..b3a87159e457 100644 --- a/drivers/pci/host/pcie-designware.c +++ b/drivers/pci/host/pcie-designware.c @@ -861,7 +861,7 @@ void dw_pcie_setup_rc(struct pcie_port *pp) /* setup bus numbers */ val = dw_pcie_readl_rc(pp, PCI_PRIMARY_BUS); val &= 0xff000000; - val |= 0x00010100; + val |= 0x00ff0100; dw_pcie_writel_rc(pp, PCI_PRIMARY_BUS, val); /* setup command register */