thunderbolt: Avoid notify PM core about runtime PM resume
authorGil Fine <gil.fine@linux.intel.com>
Fri, 1 Mar 2024 13:11:18 +0000 (15:11 +0200)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Wed, 10 Apr 2024 07:49:58 +0000 (10:49 +0300)
commitdcd12acaf384c30437fa5a9a1f71df06fc9835fd
treef5eefcec7187edb30a2778e73b02f839bf0f9ece
parentc38fa07dc69f0b9e6f43ecab96dc7861a70c827c
thunderbolt: Avoid notify PM core about runtime PM resume

Currently we notify PM core about occurred wakes after any resume. This
is not actually needed after resume from runtime suspend. Hence, notify
PM core about occurred wakes only after resume from system sleep. Also,
if the wake occurred in USB4 router upstream port, we don't notify the
PM core about it since it is not actually needed and can cause
unexpected autowake (e.g. if /sys/power/wakeup_count is used).

While there add the missing kernel-doc for tb_switch_resume().

Signed-off-by: Gil Fine <gil.fine@linux.intel.com>
Cc: stable@vger.kernel.org
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/thunderbolt/switch.c
drivers/thunderbolt/tb.c
drivers/thunderbolt/tb.h
drivers/thunderbolt/usb4.c