Skip to content

Commit a7072c0

Browse files
basuamdJiri Kosina
authored andcommitted
HID: amd_sfh: Increase sensor command timeout
HPD sensors take more time to initialize. Hence increasing sensor command timeout to get response with status within a max timeout. Fixes: 173709f ("HID: amd_sfh: Add command response to check command status") Signed-off-by: Basavaraj Natikar <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 2787710 commit a7072c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ static int amd_sfh_wait_response_v2(struct amd_mp2_dev *mp2, u8 sid, u32 sensor_
3737
{
3838
union cmd_response cmd_resp;
3939

40-
/* Get response with status within a max of 800 ms timeout */
40+
/* Get response with status within a max of 1600 ms timeout */
4141
if (!readl_poll_timeout(mp2->mmio + AMD_P2C_MSG(0), cmd_resp.resp,
4242
(cmd_resp.response_v2.response == sensor_sts &&
4343
cmd_resp.response_v2.status == 0 && (sid == 0xff ||
44-
cmd_resp.response_v2.sensor_id == sid)), 500, 800000))
44+
cmd_resp.response_v2.sensor_id == sid)), 500, 1600000))
4545
return cmd_resp.response_v2.response;
4646

4747
return SENSOR_DISABLED;

0 commit comments

Comments
 (0)