diff options
author | Mario Limonciello <mario.limonciello@amd.com> | 2025-04-21 16:32:09 -0500 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.com> | 2025-04-24 12:17:55 +0200 |
commit | 0cc2effbc8f522af6b9d871cd27678e6aed9d56c (patch) | |
tree | 789f0cb23a3fa286315c8fe84c722fe5d50b5519 /tools/perf/scripts/python | |
parent | 6bf8ab7774a20e1e60030e20f42ac8cc804fa457 (diff) |
HID: amd_sfh: Fix SRA sensor when it's the only sensor
On systems that only have an SRA sensor connected to SFH the sensor
doesn't get enabled due to a bad optimization condition of breaking
the sensor walk loop.
This optimization is unnecessary in the first place because if there
is only one device then the loop only runs once. Drop the condition
and explicitly mark sensor as enabled.
Reported-by: Yijun Shen <Yijun.Shen@dell.com>
Tested-By: Yijun Shen <Yijun_Shen@Dell.com>
Fixes: d1c444b47100d ("HID: amd_sfh: Add support to export device operating states")
Cc: stable@vger.kernel.org
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Acked-by: Basavaraj Natikar <Basavaraj.Natikar@amd.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions