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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Mar 2022 18:12:30 +0000 (19:12 +0100)
commit8ba9a2e72584ce4e94742140eb7c36bfbb217a27
tree117e22378c1d1e803ea213df218b93c28083a395
parent546d60859ecf13380fcabcbeace53a5971493a2b
HID: amd_sfh: Handle amd_sfh work buffer in PM ops

[ Upstream commit 0cf74235f4403b760a37f77271d2ca3424001ff9 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hid/amd-sfh-hid/amd_sfh_pcie.c