[linux-yocto] [PATCH 29/48] drivers/pci: Reduce the Axxia LOS Timeout

Daniel Dragomir daniel.dragomir at windriver.com
Mon Dec 11 05:13:59 PST 2017


From: John Jacques <john.jacques at intel.com>

When using the LOS work around on Axxia parts, fail
if there is no link in 1 second (formerly 2 seconds).

Signed-off-by: John Jacques <john.jacques at intel.com>
---
 drivers/pci/host/pcie-axxia.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/drivers/pci/host/pcie-axxia.c b/drivers/pci/host/pcie-axxia.c
index ac7a531..84909f1 100644
--- a/drivers/pci/host/pcie-axxia.c
+++ b/drivers/pci/host/pcie-axxia.c
@@ -1134,9 +1134,13 @@ axxia_pcie_los_wa(struct pcie_port *pp, unsigned int max_width)
 			break;
 		}
 
+		/*
+		 * Give up if there is no link after 1 second.
+		 */
+
 		do_gettimeofday(&now);
 
-		if ((2 * 1000 * 1000) <
+		if ((1000 * 1000) <
 		    (((now.tv_sec * 1000 * 1000) + now.tv_usec) -
 		     ((start.tv_sec * 1000 * 1000) + start.tv_usec))) {
 			rc = -1;
-- 
2.7.4



More information about the linux-yocto mailing list