aboutsummaryrefslogtreecommitdiff
path: root/drivers/thunderbolt/tb.h
diff options
context:
space:
mode:
authorGravatar Mika Westerberg <mika.westerberg@linux.intel.com> 2022-02-13 11:54:15 +0200
committerGravatar Mika Westerberg <mika.westerberg@linux.intel.com> 2022-05-05 09:25:04 +0300
commit0e14dd5e14d697e2489c7bf0fe35947831de3975 (patch)
tree241942eda03fa6a5ac5bb5aa3410a2126b5bbe8d /drivers/thunderbolt/tb.h
parentthunderbolt: Move tb_port_state() prototype to correct place (diff)
downloadlinux-0e14dd5e14d697e2489c7bf0fe35947831de3975.tar.gz
linux-0e14dd5e14d697e2489c7bf0fe35947831de3975.tar.bz2
linux-0e14dd5e14d697e2489c7bf0fe35947831de3975.zip
thunderbolt: Split setting link width and lane bonding into own functions
When bonding lanes over XDomain the host that has "higher" UUID triggers link re-train for bonding, and the host that has "lower" UUID just waits for this to happen. To support this split setting the link width and triggering the actual bonding a separate functions that can be called as needed. While there remove duplicated empty line in the kernel-doc comment of tb_port_lane_bonding_disable(). Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'drivers/thunderbolt/tb.h')
-rw-r--r--drivers/thunderbolt/tb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/thunderbolt/tb.h b/drivers/thunderbolt/tb.h
index 8848e8de1fc3..4602c69913fa 100644
--- a/drivers/thunderbolt/tb.h
+++ b/drivers/thunderbolt/tb.h
@@ -1024,6 +1024,8 @@ static inline bool tb_port_use_credit_allocation(const struct tb_port *port)
int tb_port_get_link_speed(struct tb_port *port);
int tb_port_get_link_width(struct tb_port *port);
+int tb_port_set_link_width(struct tb_port *port, unsigned int width);
+int tb_port_set_lane_bonding(struct tb_port *port, bool bonding);
int tb_port_lane_bonding_enable(struct tb_port *port);
void tb_port_lane_bonding_disable(struct tb_port *port);
int tb_port_wait_for_link_width(struct tb_port *port, int width,