thunderbolt: Increase runtime PM reference count on DP tunnel discovery
authorMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 10 Dec 2020 12:57:10 +0000 (14:57 +0200)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Mon, 8 Mar 2021 11:22:42 +0000 (14:22 +0300)
commitc94732bda079ee66b5c3904cbb628d0cb218ab39
tree02efbaf00c842914fff9581545aeb56259699326
parent781e14eaa7d168dc07d2a2eea5c55831a5bb46f3
thunderbolt: Increase runtime PM reference count on DP tunnel discovery

If the driver is unbound and then bound back it goes over the topology
and figure out the existing tunnels. However, if it finds DP tunnel it
should make sure the domain does not runtime suspend as otherwise it
will tear down the DP tunnel unexpectedly.

Fixes: 6ac6faee5d7d ("thunderbolt: Add runtime PM for Software CM")
Cc: stable@vger.kernel.org
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/thunderbolt/tb.c