]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
thunderbolt: Tear down existing tunnels when resuming from hibernate
authorMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 8 Mar 2022 08:49:05 +0000 (16:49 +0800)
committerPaolo Pisati <paolo.pisati@canonical.com>
Wed, 9 Mar 2022 14:13:09 +0000 (15:13 +0100)
commit591ad42d9da61c5642fbf9a834079403a479a835
tree0a96b267439e8d55504c2155718519dec69b5be2
parent4ea6dd9afa0a0d9fe537e53f14981c6635e55175
thunderbolt: Tear down existing tunnels when resuming from hibernate

BugLink: https://bugs.launchpad.net/bugs/1955016
If the boot firmware implements connection manager of its own it may not
create the paths in the same way or order we do. For example it may
create first PCIe tunnel and then USB3 tunnel. When we restore our
tunnels (first de-activating them) we may be doing that over completely
different tunnels and that leaves them possibly non-functional. For this
reason we re-use the tunnel discovery functionality and find out all the
existing tunnels, and tear them down. Once that is done we can restore
our tunnels.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
(cherry picked from commit 43bddb26e20af916249b5318200cfe1734c1700c)
Signed-off-by: Chia-Lin Kao (AceLan) <acelan.kao@canonical.com>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/thunderbolt/path.c
drivers/thunderbolt/tb.c
drivers/thunderbolt/tb.h
drivers/thunderbolt/tunnel.c
drivers/thunderbolt/tunnel.h