/[packages]/backports/8/kernel/current/SOURCES/hid-amd_sfh-increase-sensor-command-timeout.patch
ViewVC logotype

Contents of /backports/8/kernel/current/SOURCES/hid-amd_sfh-increase-sensor-command-timeout.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1781185 - (show annotations) (download)
Fri Feb 18 16:18:16 2022 UTC (2 years, 1 month ago) by tmb
File size: 1505 byte(s)
sync with cauldron 5.16.10-2.mga9
1 From a7072c01c3ac3ae6ecd08fa7b43431cfc8ed331f Mon Sep 17 00:00:00 2001
2 From: Basavaraj Natikar <Basavaraj.Natikar@amd.com>
3 Date: Mon, 31 Jan 2022 22:48:32 +0530
4 Subject: HID: amd_sfh: Increase sensor command timeout
5
6 From: Basavaraj Natikar <Basavaraj.Natikar@amd.com>
7
8 commit a7072c01c3ac3ae6ecd08fa7b43431cfc8ed331f upstream.
9
10 HPD sensors take more time to initialize. Hence increasing sensor
11 command timeout to get response with status within a max timeout.
12
13 Fixes: 173709f50e98 ("HID: amd_sfh: Add command response to check command status")
14 Signed-off-by: Basavaraj Natikar <Basavaraj.Natikar@amd.com>
15 Signed-off-by: Jiri Kosina <jkosina@suse.cz>
16 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
17 ---
18 drivers/hid/amd-sfh-hid/amd_sfh_pcie.c | 4 ++--
19 1 file changed, 2 insertions(+), 2 deletions(-)
20
21 --- a/drivers/hid/amd-sfh-hid/amd_sfh_pcie.c
22 +++ b/drivers/hid/amd-sfh-hid/amd_sfh_pcie.c
23 @@ -37,11 +37,11 @@ static int amd_sfh_wait_response_v2(stru
24 {
25 union cmd_response cmd_resp;
26
27 - /* Get response with status within a max of 800 ms timeout */
28 + /* Get response with status within a max of 1600 ms timeout */
29 if (!readl_poll_timeout(mp2->mmio + AMD_P2C_MSG(0), cmd_resp.resp,
30 (cmd_resp.response_v2.response == sensor_sts &&
31 cmd_resp.response_v2.status == 0 && (sid == 0xff ||
32 - cmd_resp.response_v2.sensor_id == sid)), 500, 800000))
33 + cmd_resp.response_v2.sensor_id == sid)), 500, 1600000))
34 return cmd_resp.response_v2.response;
35
36 return SENSOR_DISABLED;

  ViewVC Help
Powered by ViewVC 1.1.30