thunderbolt: Check for first depth router in tb.c
authorMika Westerberg <mika.westerberg@linux.intel.com>
Fri, 18 Nov 2022 13:26:12 +0000 (15:26 +0200)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Fri, 9 Jun 2023 09:07:23 +0000 (12:07 +0300)
commit9650de737992cad35f48e19d7004a0ad2673dae1
tree89fd5f95f6113922affc02bda32353888eacb7e8
parent35627353063bc145ba5c2c509dfe042982e2a219
thunderbolt: Check for first depth router in tb.c

Currently tb_switch_clx_enable() enables CL states only for the first
depth router. This is something we may want to change in the future and
in addition it is not visible from the calling path at all. For this
reason do the check in the tb.c so it is immediately visible that we
only do this for the first depth router. Fix the kernel-docs
accordingly.

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