summaryrefslogtreecommitdiff
path: root/drivers/pci
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2023-02-22 22:47:29 +0300
committerBjorn Helgaas <bhelgaas@google.com>2023-02-22 22:47:29 +0300
commit181a60a0ee881d54f3e100efff842c4d076f7419 (patch)
tree8579248f4b4bbb239ac370db1aa2ee0decd2ccdb /drivers/pci
parenta9cd360245af188f29e3b5cd1d1c7a60f8249b1f (diff)
parent0cb2a8f3456ff1cc51d571e287a48e8fddc98ec2 (diff)
downloadlinux-181a60a0ee881d54f3e100efff842c4d076f7419.tar.xz
Merge branch 'pci/controller/mt7621'
- Delay PHY initialization to make boots reliable for ZBT WE1326 and ZBT WF3526-P and some Netgear models (Sergio Paracuellos) * pci/controller/mt7621: PCI: mt7621: Delay phy ports initialization
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/controller/pcie-mt7621.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pci/controller/pcie-mt7621.c b/drivers/pci/controller/pcie-mt7621.c
index ee7aad09d627..63a5f4463a9f 100644
--- a/drivers/pci/controller/pcie-mt7621.c
+++ b/drivers/pci/controller/pcie-mt7621.c
@@ -60,6 +60,7 @@
#define PCIE_PORT_LINKUP BIT(0)
#define PCIE_PORT_CNT 3
+#define INIT_PORTS_DELAY_MS 100
#define PERST_DELAY_MS 100
/**
@@ -369,6 +370,7 @@ static int mt7621_pcie_init_ports(struct mt7621_pcie *pcie)
}
}
+ msleep(INIT_PORTS_DELAY_MS);
mt7621_pcie_reset_ep_deassert(pcie);
tmp = NULL;