mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-02-19 18:19:38 -05:00
HID: amd_sfh: Default to HPD disabled
Unless you know to look for it, HPD is a surprising behavior; particularly because it can wake the system from suspend. It also has implications for power consumption because sensors are left enabled. After the sensors have been probed (and HPD is found present), explicitly turn off HPD by default. Userspace can manually turn it on if desirable. Cc: Pratap Nirujogi <pratap.nirujogi@amd.com> Tested-by: Anson Tsao <anson.tsao@amd.com> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Jiri Kosina <jkosina@suse.com>
This commit is contained in:
committed by
Jiri Kosina
parent
e38764f6db
commit
832ecb010e
@@ -213,6 +213,7 @@ static int amd_sfh1_1_hid_client_init(struct amd_mp2_dev *privdata)
|
||||
case HPD_IDX:
|
||||
privdata->dev_en.is_hpd_present = true;
|
||||
privdata->dev_en.is_hpd_enabled = true;
|
||||
amd_sfh_toggle_hpd(privdata, false);
|
||||
break;
|
||||
case ALS_IDX:
|
||||
privdata->dev_en.is_als_present = true;
|
||||
|
||||
Reference in New Issue
Block a user