mirror of
https://github.com/torvalds/linux.git
synced 2026-11-28 01:13:11 +00:00
thunderbolt: Use wake on connect and disconnect over suspend
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 <[email protected]> Cc: Raul Rangel <[email protected]> Cc: Utkarsh Patel <[email protected]> Cc: Richard Gong <[email protected]> Cc: Sanath S <[email protected]> Link: https://lore.kernel.org/linux-usb/[email protected]/T/#m0249e8c0e1c77ec92a44a3d6c8b4a8e5a9b7114e Signed-off-by: Mario Limonciello <[email protected]> Signed-off-by: Mika Westerberg <[email protected]>
This commit is contained in:
committed by
Mika Westerberg
parent
0af2f6be1b
commit
4bfeea6ec1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user