mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2025-04-19 20:58:31 +09:00
HID: amd_sfh: Don't show wrong status for amd_sfh_hpd_info()
When HPD is present but has been disabled, avoid reporting HPD status to PMF. 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:
parent
832ecb010e
commit
01601fdd40
@ -129,7 +129,7 @@ static int amd_sfh_hpd_info(u8 *user_present)
|
||||
if (!user_present)
|
||||
return -EINVAL;
|
||||
|
||||
if (!emp2 || !emp2->dev_en.is_hpd_present)
|
||||
if (!emp2 || !emp2->dev_en.is_hpd_present || !emp2->dev_en.is_hpd_enabled)
|
||||
return -ENODEV;
|
||||
|
||||
hpdstatus.val = readl(emp2->mmio + amd_get_c2p_val(emp2, 4));
|
||||
|
Loading…
x
Reference in New Issue
Block a user