thunderbolt: Improve DisplayPort tunnel setup process to be more robust
authorGil Fine <gil.fine@linux.intel.com>
Wed, 15 Nov 2023 10:09:55 +0000 (12:09 +0200)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Fri, 16 Feb 2024 10:29:23 +0000 (12:29 +0200)
commitb4734507ac55cc7ea1380e20e83f60fcd7031955
tree4635853ed1ab85cd7aa731d5ff40cf494cd6f809
parentccd845021147dc8257a05ed8f5a7f9c61a9101e3
thunderbolt: Improve DisplayPort tunnel setup process to be more robust

After DisplayPort tunnel setup, we add verification that the DPRX
capabilities read process completed. Otherwise, we bail out, teardown
the tunnel, and try setup another DisplayPort tunnel using next
available DP IN adapter. We do so till all DP IN adapters tried. This
way, we avoid allocating DP IN adapter and (bandwidth for it) for
unusable tunnel.

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