thunderbolt: Increase path length in discovery
authorMika Westerberg <mika.westerberg@linux.intel.com>
Fri, 8 May 2020 08:47:00 +0000 (11:47 +0300)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Mon, 22 Jun 2020 16:58:20 +0000 (19:58 +0300)
Currently we have only supported paths that follow daisy-chain topology
but USB4 also allows to build trees of devices. For this reason increase
maximum path length we use for discovery to be from the lowest level to
the host router and back to the same level.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/thunderbolt/tb.h

index 6916168e2c761bd526adaeb6b9de5780f5d47b10..b53ef5be72630096e99c811a2e10180abad88f32 100644 (file)
@@ -286,7 +286,11 @@ struct tb_path {
 
 /* HopIDs 0-7 are reserved by the Thunderbolt protocol */
 #define TB_PATH_MIN_HOPID      8
-#define TB_PATH_MAX_HOPS       7
+/*
+ * Support paths from the farthest (depth 6) router to the host and back
+ * to the same level (not necessarily to the same router).
+ */
+#define TB_PATH_MAX_HOPS       (7 * 2)
 
 /**
  * struct tb_cm_ops - Connection manager specific operations vector