]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1ee9c606adda9fd8b921765745aa8fe9534177af
tree02efbaf00c842914fff9581545aeb56259699326
parent4a304fe568e9f2a65ce6826f8393764f74f71771
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: 7c7601d1a6d0 ("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