platform/x86/amd/pmc: call amd_pmc_get_ip_info() during driver probe
authorShyam Sundar S K <Shyam-sundar.S-k@amd.com>
Thu, 28 Dec 2023 10:21:01 +0000 (15:51 +0530)
committerHans de Goede <hdegoede@redhat.com>
Tue, 2 Jan 2024 12:40:24 +0000 (13:40 +0100)
commit13313c135266ed62d33f43281fb22289865064fd
treecf376924ecb4e5c0bec75d7ac7b37692e132fd4d
parentd8fb50fe6c5c3632079a1642afdd87d30e0d1bbe
platform/x86/amd/pmc: call amd_pmc_get_ip_info() during driver probe

In the current code, amd_pmc_get_ip_info() is being called from
amd_pmc_s2d_init() and that code block gets enabled only when the STB is
being enabled.

But the information from amd_pmc_get_ip_info() will be required outside of
STB usecase. Hence move this call into driver probe sequence.

Signed-off-by: Sanket Goswami <Sanket.Goswami@amd.com>
Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20231228102104.1785383-4-Shyam-sundar.S-k@amd.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/amd/pmc/pmc.c