mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
HID: amd_sfh: Correct the stop all command
[ Upstream commit82c2a0d137] Misinterpreted the stop all command in SHF1.1 firmware. Therefore, it is necessary to update the stop all command accordingly to disable all sensors. Fixes:93ce5e0231("HID: amd_sfh: Implement SFH1.1 functionality") Signed-off-by: Basavaraj Natikar <Basavaraj.Natikar@amd.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
959f6ae96b
commit
a5e4df860d
@@ -58,8 +58,10 @@ static void amd_stop_all_sensor(struct amd_mp2_dev *privdata)
|
|||||||
struct sfh_cmd_base cmd_base;
|
struct sfh_cmd_base cmd_base;
|
||||||
|
|
||||||
cmd_base.ul = 0;
|
cmd_base.ul = 0;
|
||||||
cmd_base.cmd.cmd_id = STOP_ALL_SENSORS;
|
cmd_base.cmd.cmd_id = DISABLE_SENSOR;
|
||||||
cmd_base.cmd.intr_disable = 0;
|
cmd_base.cmd.intr_disable = 0;
|
||||||
|
/* 0xf indicates all sensors */
|
||||||
|
cmd_base.cmd.sensor_id = 0xf;
|
||||||
|
|
||||||
writel(cmd_base.ul, privdata->mmio + AMD_C2P_MSG(0));
|
writel(cmd_base.ul, privdata->mmio + AMD_C2P_MSG(0));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user