thunderbolt: Use DP_LOCAL_CAP for maximum bandwidth calculation
authorMika Westerberg <mika.westerberg@linux.intel.com>
Mon, 11 Dec 2023 11:50:22 +0000 (13:50 +0200)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Fri, 16 Feb 2024 10:29:22 +0000 (12:29 +0200)
commit7b5e0bfc03cb904638200444264cfb20f7f6bea7
tree2c7262f1288431ede02310af17bd27152e54ad02
parente96efb1191de1b5955deab065ae3775a8033dc0f
thunderbolt: Use DP_LOCAL_CAP for maximum bandwidth calculation

The DisplayPort IN adapter DP_LOCAL_CAP holds the aggregated
capabilities and gets updated after graphics side does the DPRX
capabilities read so we should use this to figure out the maximum
possible bandwidth for the DisplayPort tunnel.

While there make the variable name to match better what it is used for
and add kernel-doc comment to the function.

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