Skip to content
Commit f0342e75 authored by Mika Westerberg's avatar Mika Westerberg
Browse files

thunderbolt: Do not allocate switch if depth is greater than 6



Maximum depth in Thunderbolt topology is 6 so make sure it is not
possible to allocate switches that exceed the depth limit.

While at it update tb_switch_alloc() to use upper/lower_32_bits()
following tb_switch_alloc_safe_mode().

Signed-off-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
parent 09f11b6c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment