Skip to content

Commit

Permalink
PCI: iproc: Remove PAXC slot check to allow VF support
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jitendra Bhivare authored and Lorenzo Pieralisi committed Sep 18, 2018
1 parent 7876320 commit 4da6b44
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions drivers/pci/controller/pcie-iproc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 4da6b44

Please sign in to comment.