summaryrefslogtreecommitdiff
path: root/drivers/thunderbolt/tb.h
diff options
context:
space:
mode:
authorSanath S <Sanath.S@amd.com>2024-01-13 12:42:23 +0300
committerMika Westerberg <mika.westerberg@linux.intel.com>2024-01-22 14:21:06 +0300
commitb35c1d7b11da8c08b14147bbe87c2c92f7a83f8b (patch)
treef07f396edfc673f9a00b48f0cf662538642a7895 /drivers/thunderbolt/tb.h
parent01da6b99d49f60b1edead44e33569b1a2e9f49b7 (diff)
downloadlinux-b35c1d7b11da8c08b14147bbe87c2c92f7a83f8b.tar.xz
thunderbolt: Introduce tb_path_deactivate_hop()
This function can be used to clear path config space of an adapter. Make it available for other files in this driver. Signed-off-by: Sanath S <Sanath.S@amd.com> Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'drivers/thunderbolt/tb.h')
-rw-r--r--drivers/thunderbolt/tb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/thunderbolt/tb.h b/drivers/thunderbolt/tb.h
index c38b047ba14b..2c689e3b02b9 100644
--- a/drivers/thunderbolt/tb.h
+++ b/drivers/thunderbolt/tb.h
@@ -1150,6 +1150,7 @@ struct tb_path *tb_path_alloc(struct tb *tb, struct tb_port *src, int src_hopid,
void tb_path_free(struct tb_path *path);
int tb_path_activate(struct tb_path *path);
void tb_path_deactivate(struct tb_path *path);
+int tb_path_deactivate_hop(struct tb_port *port, int hop_index);
bool tb_path_is_invalid(struct tb_path *path);
bool tb_path_port_on_path(const struct tb_path *path,
const struct tb_port *port);