]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
pci: intel: Increase TLP polling counter
authorLey Foon Tan <ley.foon.tan@intel.com>
Fri, 24 May 2019 02:29:58 +0000 (10:29 +0800)
committerTom Rini <trini@konsulko.com>
Sun, 11 Aug 2019 20:43:41 +0000 (16:43 -0400)
Some PCIe devices require longer time to response.
Increase polling counter to 20000 (~100ms).

Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
drivers/pci/pcie_intel_fpga.c

index 3cdf05b3144d0f1c19d9ae2448d9515e81199e08..e74b35ac1638e61f45cd709b46aa116373f8dee9 100644 (file)
@@ -56,7 +56,7 @@
 #define TLP_COMP_STATUS(s)             (((s) >> 13) & 7)
 #define TLP_BYTE_COUNT(s)              (((s) >> 0) & 0xfff)
 #define TLP_HDR_SIZE                   3
-#define TLP_LOOP                       500
+#define TLP_LOOP                       20000
 #define DWORD_MASK                     3
 
 #define IS_ROOT_PORT(pcie, bdf)                                \