thunderbolt: Use tb_dp_read_cap() to read DP_COMMON_CAP as well
authorMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 23 Nov 2023 11:39:21 +0000 (13:39 +0200)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 14 Dec 2023 06:07:45 +0000 (08:07 +0200)
commit97e0a21ce835603b81a5c11de5bf45820194db10
tree4541be8146a156fa282e8b7d2634b2112f9735ea
parent09dc766bd60b7bc6a2742aaf2410e434f458893c
thunderbolt: Use tb_dp_read_cap() to read DP_COMMON_CAP as well

There is no point doing this separately as the register layout is the
same. For this reason rename tb_dp_read_dprx() to tb_dp_wait_dprx() and
call tb_dp_read_cap() instead.

While there add debug log if the DPRX capability read times out.

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