Skip to content

Commit 64bebef

Browse files
Fu, ZhonghuiJiri Kosina
authored andcommitted
HID: enable hid device to suspend/resume asynchronously
Now, PM core supports asynchronous suspend/resume mode for devices during system suspend/resume, and the power state transition of one device may be completed in separate kernel thread. PM core ensures all power state transition timing dependency between devices. This patch enables hid devices to suspend/resume asynchronously. This will take advantage of multicore and improve system suspend/resume speed. Signed-off-by: Zhonghui Fu <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 25364a9 commit 64bebef

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/hid/hid-core.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2660,6 +2660,7 @@ struct hid_device *hid_allocate_device(void)
26602660
device_initialize(&hdev->dev);
26612661
hdev->dev.release = hid_device_release;
26622662
hdev->dev.bus = &hid_bus_type;
2663+
device_enable_async_suspend(&hdev->dev);
26632664

26642665
hid_close_report(hdev);
26652666

0 commit comments

Comments
 (0)