HID: amd_sfh: Add interrupt handler to process interrupts
authorBasavaraj Natikar <Basavaraj.Natikar@amd.com>
Tue, 8 Feb 2022 12:21:12 +0000 (17:51 +0530)
committerJiri Kosina <jkosina@suse.cz>
Mon, 14 Feb 2022 15:28:51 +0000 (16:28 +0100)
commit7f016b35ca7623c71b31facdde080e8ce171a697
treed1c0ade59c611d72bc326c245061e4ae51209b93
parentfb75a3791a8032848c987db29b622878d8fe2b1c
HID: amd_sfh: Add interrupt handler to process interrupts

On newer AMD platforms with SFH, it is observed that random interrupts
get generated on the SFH hardware and until this is cleared the firmware
sensor processing is stalled, resulting in no data been received to
driver side.

Add routines to handle these interrupts, so that firmware operations are
not stalled.

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
drivers/hid/amd-sfh-hid/amd_sfh_pcie.h