OSDN Git Service

PCI: iproc: Remove PAXC slot check to allow VF support
authorJitendra Bhivare <jitendra.bhivare@broadcom.com>
Tue, 28 Aug 2018 17:22:58 +0000 (10:22 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jan 2020 13:49:55 +0000 (14:49 +0100)
[ Upstream commit 4da6b4480766e5bc9c4d7bc14bf1d0939a1a5fa7 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pci/controller/pcie-iproc.c

index 3160e93..c20fd6b 100644 (file)
@@ -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);
 }