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

Commit e18934b5 authored by Po Liu's avatar Po Liu Committed by Bjorn Helgaas
Browse files

PCI: designware: Relax device number checking to allow SR-IOV



Previously we only allowed device 0 to be directly attached to the root
port.  But SR-IOV devices may use non-zero device numbers for VFs.

Remove the restriction that only device 0 may be attached to a root port.

[bhelgaas: changelog]
Signed-off-by: default avatarPo Liu <po.liu@nxp.com>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Acked-by: default avatarJingoo Han <jingoohan1@gmail.com>
parent d99e30b7
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -670,13 +670,6 @@ static int dw_pcie_valid_config(struct pcie_port *pp,
	if (bus->number == pp->root_bus_nr && dev > 0)
		return 0;

	/*
	 * do not read more than one device on the bus directly attached
	 * to RC's (Virtual Bridge's) DS side.
	 */
	if (bus->primary == pp->root_bus_nr && dev > 0)
		return 0;

	return 1;
}