diff options
author | Basavaraj Natikar <Basavaraj.Natikar@amd.com> | 2022-02-08 15:21:12 +0300 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2022-02-14 18:28:51 +0300 |
commit | 7f016b35ca7623c71b31facdde080e8ce171a697 (patch) | |
tree | d1c0ade59c611d72bc326c245061e4ae51209b93 /drivers/hid/amd-sfh-hid/amd_sfh_pcie.h | |
parent | fb75a3791a8032848c987db29b622878d8fe2b1c (diff) | |
download | linux-7f016b35ca7623c71b31facdde080e8ce171a697.tar.xz |
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>
Diffstat (limited to 'drivers/hid/amd-sfh-hid/amd_sfh_pcie.h')
-rw-r--r-- | drivers/hid/amd-sfh-hid/amd_sfh_pcie.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hid/amd-sfh-hid/amd_sfh_pcie.h b/drivers/hid/amd-sfh-hid/amd_sfh_pcie.h index 61de09ba5124..97b99861fae2 100644 --- a/drivers/hid/amd-sfh-hid/amd_sfh_pcie.h +++ b/drivers/hid/amd-sfh-hid/amd_sfh_pcie.h @@ -142,5 +142,6 @@ struct amd_mp2_ops { void (*stop_all)(struct amd_mp2_dev *privdata); int (*response)(struct amd_mp2_dev *mp2, u8 sid, u32 sensor_sts); void (*clear_intr)(struct amd_mp2_dev *privdata); + int (*init_intr)(struct amd_mp2_dev *privdata); }; #endif |