]> Gentwo Git Trees - linux/.git/commit
HID: amd_sfh: Stop sensor before starting
authorMario Limonciello (AMD) <superm1@kernel.org>
Mon, 20 Oct 2025 15:50:42 +0000 (10:50 -0500)
committerJiri Kosina <jkosina@suse.com>
Thu, 30 Oct 2025 10:58:41 +0000 (11:58 +0100)
commit4d3a13afa8b64dc49293b3eab3e7beac11072c12
tree1be4afc81fd3a3aab598d9092f2fad02ec0e9230
parent743c81cdc98fd4fef62a89eb70efff994112c2d9
HID: amd_sfh: Stop sensor before starting

Titas reports that the accelerometer sensor on their laptop only
works after a warm boot or unloading/reloading the amd-sfh kernel
module.

Presumably the sensor is in a bad state on cold boot and failing to
start, so explicitly stop it before starting.

Cc: stable@vger.kernel.org
Fixes: 93ce5e0231d79 ("HID: amd_sfh: Implement SFH1.1 functionality")
Reported-by: Titas <novatitas366@gmail.com>
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=220670
Tested-by: Titas <novatitas366@gmail.com>
Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_init.c