Skip to content

Commit b300667

Browse files
basuamdJiri Kosina
authored andcommitted
HID: amd_sfh: Disable the interrupt for all command
Sensor data is processed in polling mode. Hence disable the interrupt for all sensor command. Signed-off-by: Basavaraj Natikar <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent aa0b724 commit b300667

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/hid/amd-sfh-hid/amd_sfh_pcie.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ static void amd_start_sensor_v2(struct amd_mp2_dev *privdata, struct amd_mp2_sen
5353

5454
cmd_base.ul = 0;
5555
cmd_base.cmd_v2.cmd_id = ENABLE_SENSOR;
56+
cmd_base.cmd_v2.intr_disable = 1;
5657
cmd_base.cmd_v2.period = info.period;
5758
cmd_base.cmd_v2.sensor_id = info.sensor_idx;
5859
cmd_base.cmd_v2.length = 16;
@@ -70,6 +71,7 @@ static void amd_stop_sensor_v2(struct amd_mp2_dev *privdata, u16 sensor_idx)
7071

7172
cmd_base.ul = 0;
7273
cmd_base.cmd_v2.cmd_id = DISABLE_SENSOR;
74+
cmd_base.cmd_v2.intr_disable = 1;
7375
cmd_base.cmd_v2.period = 0;
7476
cmd_base.cmd_v2.sensor_id = sensor_idx;
7577
cmd_base.cmd_v2.length = 16;
@@ -83,6 +85,7 @@ static void amd_stop_all_sensor_v2(struct amd_mp2_dev *privdata)
8385
union sfh_cmd_base cmd_base;
8486

8587
cmd_base.cmd_v2.cmd_id = STOP_ALL_SENSORS;
88+
cmd_base.cmd_v2.intr_disable = 1;
8689
cmd_base.cmd_v2.period = 0;
8790
cmd_base.cmd_v2.sensor_id = 0;
8891

0 commit comments

Comments
 (0)