Skip to content

Commit 7b9725b

Browse files
superm1rafaeljw
authored andcommitted
usb: sl811-hcd: Add PM_EVENT_POWEROFF into suspend callbacks
When the PM core uses hibernation callbacks for shutdown drivers will receive PM_EVENT_POWEROFF and should handle it the same as PM_EVENT_HIBERNATE would have been used. Tested-by: Eric Naim <dnaim@cachyos.org> Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org> [ rjw: Changelog adjustment ] Link: https://patch.msgid.link/20251112224025.2051702-4-superm1@kernel.org Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 988dd0b commit 7b9725b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/usb/host/sl811-hcd.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1748,6 +1748,7 @@ sl811h_suspend(struct platform_device *dev, pm_message_t state)
17481748
break;
17491749
case PM_EVENT_SUSPEND:
17501750
case PM_EVENT_HIBERNATE:
1751+
case PM_EVENT_POWEROFF:
17511752
case PM_EVENT_PRETHAW: /* explicitly discard hw state */
17521753
port_power(sl811, 0);
17531754
break;

0 commit comments

Comments
 (0)