Linux PCI subsystem development
 help / color / mirror / Atom feed
* [PATCH] PCI: mt7621: increase PERST_DELAY_MS
@ 2022-11-19 11:08 Sergio Paracuellos
  2022-11-19 18:03 ` Bjorn Helgaas
  0 siblings, 1 reply; 5+ messages in thread
From: Sergio Paracuellos @ 2022-11-19 11:08 UTC (permalink / raw)
  To: linux-pci; +Cc: gregkh, bhelgaas, kw, robh, lpieralisi

Some devices using this SoC and PCI's like ZBT WE1326 and Netgear R6220 need
more time to get the PCI ports properly working after reset. Hence, increase
PERST_DELAY_MS definition used for this purpose from 100 ms to 500 ms to get
into confiable boots and working PCI for these devices.

Fixes: 475fe234bdfd ("staging: mt7621-pci: change value for 'PERST_DELAY_MS'")
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
---
 drivers/pci/controller/pcie-mt7621.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pci/controller/pcie-mt7621.c b/drivers/pci/controller/pcie-mt7621.c
index 4bd1abf26008..438889045fa6 100644
--- a/drivers/pci/controller/pcie-mt7621.c
+++ b/drivers/pci/controller/pcie-mt7621.c
@@ -60,7 +60,7 @@
 #define PCIE_PORT_LINKUP		BIT(0)
 #define PCIE_PORT_CNT			3
 
-#define PERST_DELAY_MS			100
+#define PERST_DELAY_MS			500
 
 /**
  * struct mt7621_pcie_port - PCIe port information
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-11-22  6:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-19 11:08 [PATCH] PCI: mt7621: increase PERST_DELAY_MS Sergio Paracuellos
2022-11-19 18:03 ` Bjorn Helgaas
2022-11-20  7:37   ` Sergio Paracuellos
2022-11-21 22:50     ` Bjorn Helgaas
2022-11-22  6:50       ` Sergio Paracuellos

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox