thunderbolt: Calculate DisplayPort tunnel bandwidth after DPRX capabilities read
authorGil Fine <gil.fine@linux.intel.com>
Tue, 23 Jan 2024 13:56:42 +0000 (15:56 +0200)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Fri, 16 Feb 2024 10:29:23 +0000 (12:29 +0200)
commitccd845021147dc8257a05ed8f5a7f9c61a9101e3
tree32ff86ae22e3de5dbf126735b377f10ab9be3a2b
parent52a4490e89d7c4effe613d8dffd2ac0a2a786bd7
thunderbolt: Calculate DisplayPort tunnel bandwidth after DPRX capabilities read

According to USB4 Connection Manager guide, after DisplayPort tunnel was
setup, the DPRX capabilities read is performed by the DPTX. According to
VESA spec, this shall be completed within 5 seconds after the DisplayPort
tunnel was setup. Hence, if the bit: DPRX Capabilities Read Done, was
not set to '1' by this time, we timeout and fail calculating DisplayPort
tunnel consumed bandwidth.

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