]> git.baikalelectronics.ru Git - kernel.git/commit
HID: amd_sfh: Handle amd_sfh work buffer in PM ops
authorBasavaraj Natikar <Basavaraj.Natikar@amd.com>
Tue, 8 Feb 2022 12:21:08 +0000 (17:51 +0530)
committerJiri Kosina <jkosina@suse.cz>
Mon, 14 Feb 2022 15:28:51 +0000 (16:28 +0100)
commit78394dbfa251aabee57003e5d6f7d7a1aa095e9b
tree4291e33f2d79d3eb48162334d9438f797bc2c638
parent0683ccc325d9ffef013fd75649774ed87cfd6a0e
HID: amd_sfh: Handle amd_sfh work buffer in PM ops

Since in the current amd_sfh design the sensor data is periodically
obtained in the form of poll data, during the suspend/resume cycle,
scheduling a delayed work adds no value.

So, cancel the work and restart back during the suspend/resume cycle
respectively.

Signed-off-by: Basavaraj Natikar <Basavaraj.Natikar@amd.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/amd-sfh-hid/amd_sfh_pcie.c