Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4da6b448 authored by Jitendra Bhivare's avatar Jitendra Bhivare Committed by Lorenzo Pieralisi
Browse files

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: 46560388 ("PCI: iproc: Allow multiple devices except on PAXC")
Signed-off-by: default avatarJitendra Bhivare <jitendra.bhivare@broadcom.com>
Signed-off-by: default avatarRay Jui <ray.jui@broadcom.com>
Signed-off-by: default avatarLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: default avatarAndy Gospodarek <gospo@broadcom.com>
parent 7876320f
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -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);
}