Skip to content

Commit 333861f

Browse files
basuamdJiri Kosina
authored andcommitted
HID: amd_sfh: Increase sensor command timeout
During the initialization sensors may take some time to respond. Hence, increase the sensor command timeouts in order to obtain status responses within a maximum timeout. Co-developed-by: Akshata MukundShetty <[email protected]> Signed-off-by: Akshata MukundShetty <[email protected]> Signed-off-by: Basavaraj Natikar <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 9207fe7 commit 333861f

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
@@ -39,11 +39,11 @@ static int amd_sfh_wait_response_v2(struct amd_mp2_dev *mp2, u8 sid, u32 sensor_
3939
{
4040
union cmd_response cmd_resp;
4141

42-
/* Get response with status within a max of 1600 ms timeout */
42+
/* Get response with status within a max of 10 seconds timeout */
4343
if (!readl_poll_timeout(mp2->mmio + AMD_P2C_MSG(0), cmd_resp.resp,
4444
(cmd_resp.response_v2.response == sensor_sts &&
4545
cmd_resp.response_v2.status == 0 && (sid == 0xff ||
46-
cmd_resp.response_v2.sensor_id == sid)), 500, 1600000))
46+
cmd_resp.response_v2.sensor_id == sid)), 500, 10000000))
4747
return cmd_resp.response_v2.response;
4848

4949
return SENSOR_DISABLED;

0 commit comments

Comments
 (0)