Skip to content

Commit ae4fa5f

Browse files
dhdangbjorn-helgaas
authored andcommitted
PCI: xgene: Allow config access to Root Port even when link is down
Previously, when a Root Port's link was down, we didn't allow config access to the Root Port, which meant that if the Root Port led to an empty slot, "lspci" didn't even show the Root Port. Allow config access to Root Port even when link is down. [bhelgaas: changelog, fold in unused var fix] Suggested-by: Bjorn Helgaas <[email protected]> Signed-off-by: Duc Dang <[email protected]> Signed-off-by: Tanmay Inamdar <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]>
1 parent f09f873 commit ae4fa5f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/pci/host/pci-xgene.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,7 @@ static bool xgene_pcie_hide_rc_bars(struct pci_bus *bus, int offset)
137137
static void __iomem *xgene_pcie_map_bus(struct pci_bus *bus, unsigned int devfn,
138138
int offset)
139139
{
140-
struct xgene_pcie_port *port = bus->sysdata;
141-
142-
if ((pci_is_root_bus(bus) && devfn != 0) || !port->link_up ||
140+
if ((pci_is_root_bus(bus) && devfn != 0) ||
143141
xgene_pcie_hide_rc_bars(bus, offset))
144142
return NULL;
145143

0 commit comments

Comments
 (0)