]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
thunderbolt: Runtime resume USB4 port when retimers are scanned
authorMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 8 Mar 2022 08:49:06 +0000 (16:49 +0800)
committerPaolo Pisati <paolo.pisati@canonical.com>
Wed, 9 Mar 2022 14:13:09 +0000 (15:13 +0100)
commitf1f41709978847d971fe46a09b997455304d40ae
tree6be31c5723b5723ee158c5349b12632ad9644438
parent591ad42d9da61c5642fbf9a834079403a479a835
thunderbolt: Runtime resume USB4 port when retimers are scanned

BugLink: https://bugs.launchpad.net/bugs/1955016
Sometimes when plugging in a USB4 device we might see following error:

  thunderbolt 1-0:3.1: runtime PM trying to activate child device 1-0:3.1 but parent (usb4_port3) is not active

This happens because the parent USB4 port was still runtime suspended.
Fix this by runtime resuming the USB4 port before scanning the retimers
below it.

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