]> www.infradead.org Git - users/jedix/linux-maple.git/commit
platform/x86/amd/hsmp: Convert amd_hsmp_rdwr() to a function pointer
authorSuma Hegde <suma.hegde@amd.com>
Mon, 21 Oct 2024 11:14:20 +0000 (11:14 +0000)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 22 Oct 2024 10:36:50 +0000 (13:36 +0300)
commitd9a621ebddf2d3351db4ae5df2547b48647d4c11
treefc3b39c9eb27e948b85831885e4fa1852eeb8690
parent1e1c4c0ab3088cc94a9bafcd716e4054b3344be1
platform/x86/amd/hsmp: Convert amd_hsmp_rdwr() to a function pointer

This is in preparation to ACPI, Non-ACPI split.
amd_hsmp_rdwr() is used to access HSMP protocol registers.
ACPI and Non-ACPI use different methods to access these registers.
Now that code is split and common functionality is kept in hsmp.c
we need to define a function pointer to handle these functions separately.

Signed-off-by: Suma Hegde <suma.hegde@amd.com>
Reviewed-by: Naveen Krishna Chatradhi <naveenkrishna.chatradhi@amd.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20241021111428.2676884-3-suma.hegde@amd.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/amd/hsmp/hsmp.c