@@ -524,14 +524,6 @@ static int dw_pcie_wr_other_conf(struct pcie_port *pp, struct pci_bus *bus,
static int dw_pcie_valid_device(struct pcie_port *pp, struct pci_bus *bus,
int dev)
{
- struct dw_pcie *pci = to_dw_pcie_from_pp(pp);
-
- /* If there is no link, then there is no device */
- if (bus->number != pp->root_bus_nr) {
- if (!dw_pcie_link_up(pci))
- return 0;
- }
-
/* access only one slot on each root port */
if (bus->number == pp->root_bus_nr && dev > 0)
return 0;
@@ -140,12 +140,6 @@ static void tlp_write_tx(struct altera_pcie *pcie,
static bool altera_pcie_valid_device(struct altera_pcie *pcie,
struct pci_bus *bus, int dev)
{
- /* If there is no link, then there is no device */
- if (bus->number != pcie->root_bus_nr) {
- if (!altera_pcie_link_up(pcie))
- return false;
- }
-
/* access only one slot on each root port */
if (bus->number == pcie->root_bus_nr && dev > 0)
return false;
@@ -218,12 +218,6 @@ static bool nwl_pcie_valid_device(struct pci_bus *bus, unsigned int devfn)
{
struct nwl_pcie *pcie = bus->sysdata;
- /* Check link before accessing downstream ports */
- if (bus->number != pcie->root_busno) {
- if (!nwl_pcie_link_up(pcie))
- return false;
- }
-
/* Only one device down on each root port */
if (bus->number == pcie->root_busno && devfn > 0)
return false;
@@ -163,11 +163,6 @@ static bool xilinx_pcie_valid_device(struct pci_bus *bus, unsigned int devfn)
{
struct xilinx_pcie_port *port = bus->sysdata;
- /* Check if link is up when trying to access downstream ports */
- if (bus->number != port->root_busno)
- if (!xilinx_pcie_link_up(port))
- return false;
-
/* Only one device down on each root port */
if (bus->number == port->root_busno && devfn > 0)
return false;