Skip to content

Commit 7902ec9

Browse files
basuamdJiri Kosina
authored andcommitted
HID: amd_sfh: Use amd_get_c2p_val() to read C2P register
Newer processors support various MP2 register sets. Therefore, to ensure compatibility and obtain C2P data, use the amd_get_c2p_val(). Co-developed-by: Patil Rajesh Reddy <[email protected]> Signed-off-by: Patil Rajesh Reddy <[email protected]> Signed-off-by: Basavaraj Natikar <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 077e3e3 commit 7902ec9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_interface.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ static int amd_sfh_hpd_info(u8 *user_present)
9797
if (!emp2 || !emp2->dev_en.is_hpd_present)
9898
return -ENODEV;
9999

100-
hpdstatus.val = readl(emp2->mmio + AMD_C2P_MSG(4));
100+
hpdstatus.val = readl(emp2->mmio + amd_get_c2p_val(emp2, 4));
101101
*user_present = hpdstatus.shpd.presence;
102102

103103
return 0;

0 commit comments

Comments
 (0)