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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Mar 2021 08:04:15 +0000 (09:04 +0100)
commit6c3c90058b95c70f9e001a1d82aaf53b50562a08
tree0b16e223bca934955e8a77aff8a90ea46cc3136e
parentf4ca082e3f59f1c3a4d4b7ec383131fd18ce1b69
thunderbolt: Increase runtime PM reference count on DP tunnel discovery

commit c94732bda079ee66b5c3904cbb628d0cb218ab39 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/thunderbolt/tb.c