]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 13 Apr 2024 11:07:38 +0000 (13:07 +0200)
commitd8518f05ee8280af21af0fab364f841cd4feb7a0
treed845178a19385fc9c3ad277c1b45fd991db628b1
parent266f403ec47573046dee4bcebda82777ce702c40
thunderbolt: Keep the domain powered when USB4 port is in redrive mode

[ Upstream commit a75e0684efe567ae5f6a8e91a8360c4c1773cf3a ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/thunderbolt/quirks.c
drivers/thunderbolt/tb.c
drivers/thunderbolt/tb.h