]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
thunderbolt: Improve DisplayPort tunnel setup process to be more robust
authorGil Fine <gil.fine@linux.intel.com>
Tue, 1 Oct 2024 17:31:09 +0000 (17:31 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2024 14:30:01 +0000 (16:30 +0200)
commit4d0261cea469855fa3a33df8dd1cb29b7e6ee05a
treedc699f317cc1eb38f4a40c36c43205f26b92bb57
parentaed38a3eaf652230e8622ec9317998540276f61d
thunderbolt: Improve DisplayPort tunnel setup process to be more robust

[ Upstream commit b4734507ac55cc7ea1380e20e83f60fcd7031955 ]

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>
Signed-off-by: Qin Wan <qin.wan@hp.com>
Signed-off-by: Alexandru Gagniuc <alexandru.gagniuc@hp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/thunderbolt/tb.c