Skip to contentSkip to conversation

PCI: iproc: Remove PAXC slot check to allow VF support

PATCH Applied Ray Jui 2 participants 2 messages Aug 28, 2018 – Sep 17, 2018

Subsystems (3)
lore
Share & tools
lore

Ray Jui

author
#0 lore raw

PATCH 1/1 PCI: iproc: Remove PAXC slot check to allow VF support

From: Jitendra Bhivare <[email protected]>

Fix previous incorrect logic that limits PAXC slot number to zero only. In order for SRIOV/VF to work, we need to allow the slot number to be greater than zero.

Fixes 46560388c476c ("PCI: iproc: Allow multiple devices except on PAXC")
---
 drivers/pci/controller/pcie-iproc.c | 8 --------
 1 file changed, 8 deletions(-)
drivers/pci/controller/pcie-iproc.c +0 -8
index 3160e9342a2f..c20fd6bd68fd 100644
@@ -630,14 +630,6 @@ static void __iomem *iproc_pcie_map_cfg_bus(struct iproc_pcie *pcie,
 			return (pcie->base + offset);
 	}
 
-	/*
-	 * PAXC is connected to an internally emulated EP within the SoC.  It
-	 * allows only one device.
-	 */
-	if (pcie->ep_is_internal)
-		if (slot > 0)
-			return NULL;
-
 	return iproc_pcie_map_ep_cfg_reg(pcie, busno, slot, fn, where);
 }
 
Signature · 1 line
2.17.1
#1 lore raw
Quoted 6 lines · Ray Jui

From: Jitendra Bhivare <[email protected]>

Fix previous incorrect logic that limits PAXC slot number to zero only. In order for SRIOV/VF to work, we need to allow the slot number to be greater than zero.

Quoted 7 lines
Fixes 46560388c476c ("PCI: iproc: Allow multiple devices except on PAXC")
---
 drivers/pci/controller/pcie-iproc.c | 8 --------
 1 file changed, 8 deletions(-)

Applied to pci/iproc for v4.20, thanks.

Lorenzo

Quoted 22 lines
drivers/pci/controller/pcie-iproc.c +0 -8
index 3160e9342a2f..c20fd6bd68fd 100644
@@ -630,14 +630,6 @@ static void __iomem *iproc_pcie_map_cfg_bus(struct iproc_pcie *pcie,
 			return (pcie->base + offset);
 	}
 
-	/*
-	 * PAXC is connected to an internally emulated EP within the SoC.  It
-	 * allows only one device.
-	 */
-	if (pcie->ep_is_internal)
-		if (slot > 0)
-			return NULL;
-
 	return iproc_pcie_map_ep_cfg_reg(pcie, busno, slot, fn, where);
 }
 
Signature · 1 line
2.17.1