summaryrefslogtreecommitdiffstats
path: root/drivers/hid/amd-sfh-hid/amd_sfh_common.h
diff options
context:
space:
mode:
authorBasavaraj Natikar <Basavaraj.Natikar@amd.com>2024-02-14 15:41:43 +0100
committerJiri Kosina <jkosina@suse.com>2024-02-27 15:13:55 +0100
commit2105e8e00da4673266e217653292fef6acefde03 (patch)
tree36f6457aef8491f30a09d948527ebfce26b53f90 /drivers/hid/amd-sfh-hid/amd_sfh_common.h
parentHID: amd_sfh: Avoid disabling the interrupt (diff)
downloadlinux-2105e8e00da4673266e217653292fef6acefde03.tar.xz
linux-2105e8e00da4673266e217653292fef6acefde03.zip
HID: amd_sfh: Improve boot time when SFH is available
AMD SFH load takes longer time in initialization. Hence split and defer initialization code to improve SFH module load time and boot time of the system when SFH is available. Signed-off-by: Basavaraj Natikar <Basavaraj.Natikar@amd.com> Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'drivers/hid/amd-sfh-hid/amd_sfh_common.h')
-rw-r--r--drivers/hid/amd-sfh-hid/amd_sfh_common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/hid/amd-sfh-hid/amd_sfh_common.h b/drivers/hid/amd-sfh-hid/amd_sfh_common.h
index a1950bc6e6ce..ef5551c1eec5 100644
--- a/drivers/hid/amd-sfh-hid/amd_sfh_common.h
+++ b/drivers/hid/amd-sfh-hid/amd_sfh_common.h
@@ -53,6 +53,8 @@ struct amd_mp2_dev {
/* mp2 active control status */
u32 mp2_acs;
struct sfh_dev_status dev_en;
+ struct work_struct work;
+ u8 init_done;
};
struct amd_mp2_ops {