]> git.ipfire.org Git - thirdparty/linux.git/commit
thunderbolt: Use wake on connect and disconnect over suspend
authorMario Limonciello <mario.limonciello@amd.com>
Thu, 10 Apr 2025 04:36:57 +0000 (23:36 -0500)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Fri, 11 Apr 2025 11:18:33 +0000 (14:18 +0300)
commit4bfeea6ec1c0241a6c856ed1694a72a8cbaa8494
treec02485c16428cf782e5d3f3b24f63f2eae495777
parent0af2f6be1b4281385b618cb86ad946eded089ac8
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 <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>
drivers/thunderbolt/switch.c