thunderbolt: Keep the domain powered when USB4 port is in redrive mode
authorMika Westerberg <mika.westerberg@linux.intel.com>
Fri, 26 Jan 2024 13:55:55 +0000 (15:55 +0200)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Mon, 26 Feb 2024 07:12:12 +0000 (09:12 +0200)
commita75e0684efe567ae5f6a8e91a8360c4c1773cf3a
tree90242375d89ae4745eac9a83aeef5171d2618057
parentb4734507ac55cc7ea1380e20e83f60fcd7031955
thunderbolt: Keep the domain powered when USB4 port is in redrive mode

If a DiplayPort cable is directly connected to the host routers USB4
port, there is no tunnel involved but the port is in "redrive" mode
meaning that it is re-driving the DisplayPort signals from its
DisplayPort source. In this case we need to keep the domain powered on
otherwise once the domain enters D3cold the connected monitor blanks
too.

Since this happens only on Intel Barlow Ridge add a quirk that takes
runtime PM reference if we detect that the USB4 port entered redrive
mode (and release it once it exits the mode).

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/thunderbolt/quirks.c
drivers/thunderbolt/tb.c
drivers/thunderbolt/tb.h