Skip to content

Commit 4da6b44

Browse files
Jitendra BhivareLorenzo Pieralisi
authored andcommitted
PCI: iproc: Remove PAXC slot check to allow VF support
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: 4656038 ("PCI: iproc: Allow multiple devices except on PAXC") Signed-off-by: Jitendra Bhivare <jitendra.bhivare@broadcom.com> Signed-off-by: Ray Jui <ray.jui@broadcom.com> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Reviewed-by: Andy Gospodarek <gospo@broadcom.com>
1 parent 7876320 commit 4da6b44

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

drivers/pci/controller/pcie-iproc.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -630,14 +630,6 @@ static void __iomem *iproc_pcie_map_cfg_bus(struct iproc_pcie *pcie,
630630
return (pcie->base + offset);
631631
}
632632

633-
/*
634-
* PAXC is connected to an internally emulated EP within the SoC. It
635-
* allows only one device.
636-
*/
637-
if (pcie->ep_is_internal)
638-
if (slot > 0)
639-
return NULL;
640-
641633
return iproc_pcie_map_ep_cfg_reg(pcie, busno, slot, fn, where);
642634
}
643635

0 commit comments

Comments
 (0)