From: John Jacques <john.jacq...@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.jacq...@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 -- _______________________________________________ linux-yocto mailing list linux-yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/linux-yocto