diff options
| author | Maximilian Pezzullo <maximilianpezzullo@gmail.com> | 2026-03-04 09:25:22 +0100 |
|---|---|---|
| committer | Jiri Kosina <jkosina@suse.com> | 2026-03-27 14:08:27 +0100 |
| commit | 743677a8cb30b09f16a7f167f497c2c927891b5a (patch) | |
| tree | a6ac10e05c3f9a71185e25daa0477d6955077263 /tools/perf/scripts/python | |
| parent | 532743944324a873bbaf8620fcabcd0e69e30c36 (diff) | |
HID: amd_sfh: don't log error when device discovery fails with -EOPNOTSUPP
When sensor discovery fails on systems without AMD SFH sensors, the
code already emits a warning via dev_warn() in amd_sfh_hid_client_init().
The subsequent dev_err() in sfh_init_work() for the same -EOPNOTSUPP
return value is redundant and causes unnecessary alarm.
Suppress the dev_err() for -EOPNOTSUPP to avoid confusing users who
have no AMD SFH sensors.
Fixes: 2105e8e00da4 ("HID: amd_sfh: Improve boot time when SFH is available")
Reported-by: Casey Croy <ccroy@bugzilla.kernel.org>
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=221099
Signed-off-by: Maximilian Pezzullo <maximilianpezzullo@gmail.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
