summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMika Westerberg <mika.westerberg@linux.intel.com>2022-04-29 17:14:57 +0300
committerMika Westerberg <mika.westerberg@linux.intel.com>2023-01-17 11:37:11 +0200
commit630f211be7c0a8cf693fef2b6d77d0ac357041e0 (patch)
tree2a92326ad8cd7a98f85daecd5e3ce8b09e686ea3
parente327380133d96a7a71baca65a809bf65609a1a69 (diff)
downloadlinux-630f211be7c0a8cf693fef2b6d77d0ac357041e0.tar.gz
linux-630f211be7c0a8cf693fef2b6d77d0ac357041e0.tar.bz2
linux-630f211be7c0a8cf693fef2b6d77d0ac357041e0.zip
thunderbolt: Include the additional DP IN double word in debugfs dump
When DisplayPort bandwidth allocation mode is supported by the DP IN adapter it has an extra double word in the adapter config space. Include this in the debugfs register dump. Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
-rw-r--r--drivers/thunderbolt/debugfs.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/thunderbolt/debugfs.c b/drivers/thunderbolt/debugfs.c
index 834bcad42e9f..4339e706cc3a 100644
--- a/drivers/thunderbolt/debugfs.c
+++ b/drivers/thunderbolt/debugfs.c
@@ -1159,7 +1159,10 @@ static void port_cap_show(struct tb_port *port, struct seq_file *s,
if (tb_port_is_pcie_down(port) || tb_port_is_pcie_up(port)) {
length = PORT_CAP_PCIE_LEN;
} else if (tb_port_is_dpin(port) || tb_port_is_dpout(port)) {
- length = PORT_CAP_DP_LEN;
+ if (usb4_dp_port_bw_mode_supported(port))
+ length = PORT_CAP_DP_LEN + 1;
+ else
+ length = PORT_CAP_DP_LEN;
} else if (tb_port_is_usb3_down(port) ||
tb_port_is_usb3_up(port)) {
length = PORT_CAP_USB3_LEN;