summaryrefslogtreecommitdiffstats
path: root/drivers/thunderbolt
diff options
context:
space:
mode:
authorMika Westerberg <mika.westerberg@linux.intel.com>2020-05-08 11:47:00 +0300
committerMika Westerberg <mika.westerberg@linux.intel.com>2020-06-22 19:58:20 +0300
commitc738a794e5295ea6668ec9441c8df28c9a3c7502 (patch)
treed72febafb32f16e0fa18f0e14ddf363581a77139 /drivers/thunderbolt
parent75ab3f06a1eb1dc0b45ba4c788cb5086ba138d85 (diff)
downloadlinux-stable-c738a794e5295ea6668ec9441c8df28c9a3c7502.tar.gz
linux-stable-c738a794e5295ea6668ec9441c8df28c9a3c7502.tar.bz2
linux-stable-c738a794e5295ea6668ec9441c8df28c9a3c7502.zip
thunderbolt: Increase path length in discovery
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>
Diffstat (limited to 'drivers/thunderbolt')
-rw-r--r--drivers/thunderbolt/tb.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/thunderbolt/tb.h b/drivers/thunderbolt/tb.h
index 6916168e2c76..b53ef5be7263 100644
--- a/drivers/thunderbolt/tb.h
+++ b/drivers/thunderbolt/tb.h
@@ -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