thunderbolt: Only stop control channel when entering freeze
authorMika Westerberg <mika.westerberg@linux.intel.com>
Mon, 31 Aug 2020 10:05:14 +0000 (13:05 +0300)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Wed, 16 Sep 2020 11:57:46 +0000 (14:57 +0300)
commit884e4d576fdf6780a896bc9f7a2fe73fce5aa66a
treec48cc45a43c1072ce028b95d9457c671dfff564d
parent77e4907fa620af102f4571d4edb0dcc95b4fa083
thunderbolt: Only stop control channel when entering freeze

According to the kernel power management documentation freeze phase
should only quiesce the device, no need to configure wakes or put it to
low power state. For this reason we simply stop the control channel and
in case of Software Connection Manager also mark the hotplug disabled.
This should align the driver better with the PM framework expectations.

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