diff options
| author | 2018-08-28 10:22:58 -0700 | |
|---|---|---|
| committer | 2018-09-18 10:13:04 +0100 | |
| commit | 4da6b4480766e5bc9c4d7bc14bf1d0939a1a5fa7 (patch) | |
| tree | a41b4f2f65c35c6b4d22d3e94b996fa649de6cc7 /drivers/pci/controller/pcie-iproc.c | |
| parent | Linux 4.19-rc4 (diff) | |
| download | wireguard-linux-4da6b4480766e5bc9c4d7bc14bf1d0939a1a5fa7.tar.xz wireguard-linux-4da6b4480766e5bc9c4d7bc14bf1d0939a1a5fa7.zip | |
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: 46560388c476c ("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>
Diffstat (limited to 'drivers/pci/controller/pcie-iproc.c')
| -rw-r--r-- | drivers/pci/controller/pcie-iproc.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/pci/controller/pcie-iproc.c b/drivers/pci/controller/pcie-iproc.c index 3160e9342a2f..c20fd6bd68fd 100644 --- a/drivers/pci/controller/pcie-iproc.c +++ b/drivers/pci/controller/pcie-iproc.c @@ -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); } |
