Skip to content

Commit d6e4b12

Browse files
author
Desnes Nunes
committed
thunderbolt: Use wake on connect and disconnect over suspend
JIRA: https://issues.redhat.com/browse/RHEL-116016 commit 4bfeea6 Author: Mario Limonciello <mario.limonciello@amd.com> Date: Wed, 9 Apr 2025 23:36:57 -0500 Wake on connect is useful for being able to wake up a suspended laptop without opening the lid by plugging into a dock. Add the default policy to the USB4 router when wakeup is enabled for the router. Behavior for individual ports can be controlled by port wakeup settings. Cc: Opal Voravootivat <puthik@google.com> Cc: Raul Rangel <rrangel@chromium.org> Cc: Utkarsh Patel <utkarsh.h.patel@intel.com> Cc: Richard Gong <richard.gong@amd.com> Cc: Sanath S <sanath.s@amd.com> Link: https://lore.kernel.org/linux-usb/20250410042723.GU3152277@black.fi.intel.com/T/#m0249e8c0e1c77ec92a44a3d6c8b4a8e5a9b7114e Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Desnes Nunes <desnesn@redhat.com>
1 parent d9f5f13 commit d6e4b12

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/thunderbolt/switch.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3599,6 +3599,7 @@ void tb_switch_suspend(struct tb_switch *sw, bool runtime)
35993599
flags |= TB_WAKE_ON_USB4;
36003600
flags |= TB_WAKE_ON_USB3 | TB_WAKE_ON_PCIE | TB_WAKE_ON_DP;
36013601
} else if (device_may_wakeup(&sw->dev)) {
3602+
flags |= TB_WAKE_ON_CONNECT | TB_WAKE_ON_DISCONNECT;
36023603
flags |= TB_WAKE_ON_USB4 | TB_WAKE_ON_USB3 | TB_WAKE_ON_PCIE;
36033604
}
36043605

0 commit comments

Comments
 (0)