* [PATCH] thunderbolt: Use wake on connect and disconnect over suspend
@ 2025-04-10 4:36 Mario Limonciello
2025-04-11 11:24 ` Mika Westerberg
0 siblings, 1 reply; 2+ messages in thread
From: Mario Limonciello @ 2025-04-10 4:36 UTC (permalink / raw)
To: mario.limonciello, andreas.noever, michael.jamet, westeri,
YehezkelShB
Cc: Opal Voravootivat, Raul Rangel, Utkarsh Patel, Richard Gong,
Sanath S, linux-usb
From: Mario Limonciello <mario.limonciello@amd.com>
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>
---
drivers/thunderbolt/switch.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/thunderbolt/switch.c b/drivers/thunderbolt/switch.c
index 6a2116cbb06f9..28febb95f8fa1 100644
--- a/drivers/thunderbolt/switch.c
+++ b/drivers/thunderbolt/switch.c
@@ -3599,6 +3599,7 @@ void tb_switch_suspend(struct tb_switch *sw, bool runtime)
flags |= TB_WAKE_ON_USB4;
flags |= TB_WAKE_ON_USB3 | TB_WAKE_ON_PCIE | TB_WAKE_ON_DP;
} else if (device_may_wakeup(&sw->dev)) {
+ flags |= TB_WAKE_ON_CONNECT | TB_WAKE_ON_DISCONNECT;
flags |= TB_WAKE_ON_USB4 | TB_WAKE_ON_USB3 | TB_WAKE_ON_PCIE;
}
--
2.43.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] thunderbolt: Use wake on connect and disconnect over suspend
2025-04-10 4:36 [PATCH] thunderbolt: Use wake on connect and disconnect over suspend Mario Limonciello
@ 2025-04-11 11:24 ` Mika Westerberg
0 siblings, 0 replies; 2+ messages in thread
From: Mika Westerberg @ 2025-04-11 11:24 UTC (permalink / raw)
To: Mario Limonciello
Cc: mario.limonciello, andreas.noever, michael.jamet, westeri,
YehezkelShB, Opal Voravootivat, Raul Rangel, Utkarsh Patel,
Richard Gong, Sanath S, linux-usb
On Wed, Apr 09, 2025 at 11:36:57PM -0500, Mario Limonciello wrote:
> From: Mario Limonciello <mario.limonciello@amd.com>
>
> 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>
Applied to thunderbolt.git/next, thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-04-11 11:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-10 4:36 [PATCH] thunderbolt: Use wake on connect and disconnect over suspend Mario Limonciello
2025-04-11 11:24 ` Mika Westerberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox