]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
HID: amd_sfh: don't log error when device discovery fails with -EOPNOTSUPP
authorMaximilian Pezzullo <maximilianpezzullo@gmail.com>
Wed, 4 Mar 2026 08:25:22 +0000 (09:25 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Apr 2026 11:30:35 +0000 (13:30 +0200)
commitf1fb3197d3de5daa999dc41c8774c8e435554836
treed9ebada47ba5b32b3d9cac695e06c3762ef6e154
parent036721b58cf5bff1d5f901a58c733fc0a48ba174
HID: amd_sfh: don't log error when device discovery fails with -EOPNOTSUPP

[ Upstream commit 743677a8cb30b09f16a7f167f497c2c927891b5a ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hid/amd-sfh-hid/amd_sfh_pcie.c