summaryrefslogtreecommitdiff
path: root/drivers/thunderbolt/tb.h
diff options
context:
space:
mode:
authorMika Westerberg <mika.westerberg@linux.intel.com>2023-05-24 13:33:57 +0300
committerMika Westerberg <mika.westerberg@linux.intel.com>2023-06-09 12:07:24 +0300
commit768e6fe69fde546beb942344c4c4932f3b3bb55b (patch)
treed747dd9d626439ffddf629f03622e7418a85071d /drivers/thunderbolt/tb.h
parentb5d15961d95565934109b4cc53f50c3f5caf0d80 (diff)
downloadlinux-768e6fe69fde546beb942344c4c4932f3b3bb55b.tar.xz
thunderbolt: Initialize CL states from the hardware
In case the boot firmware enabled any of them, read the currently configured CL states and update the router structure accordingly. 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 a223763e1272..2bda2816ff47 100644
--- a/drivers/thunderbolt/tb.h
+++ b/drivers/thunderbolt/tb.h
@@ -1002,6 +1002,7 @@ static inline bool tb_switch_tmu_is_enabled(const struct tb_switch *sw)
bool tb_port_clx_is_enabled(struct tb_port *port, unsigned int clx);
+int tb_switch_clx_init(struct tb_switch *sw);
bool tb_switch_clx_is_supported(const struct tb_switch *sw);
int tb_switch_clx_enable(struct tb_switch *sw, unsigned int clx);
int tb_switch_clx_disable(struct tb_switch *sw);