platform/x86/amd: pmc: Move idlemask check into `amd_pmc_idlemask_read`
authorMario Limonciello <mario.limonciello@amd.com>
Sun, 9 Apr 2023 18:53:44 +0000 (00:23 +0530)
committerHans de Goede <hdegoede@redhat.com>
Tue, 11 Apr 2023 08:37:23 +0000 (10:37 +0200)
commit9217bd1d7699f34a01b26ba14ff38c1714ce1185
tree1ce2001a7613dae6e27dd81aae7e3ecff5813628
parent7abc3618b65304d409d9489d77e4a8f047842fb7
platform/x86/amd: pmc: Move idlemask check into `amd_pmc_idlemask_read`

The version check requirement for idle mask support actually only
applies to RN/CZN/BRC platforms.

So far no issues have happened because the PMFW version string is
bigger on other supported systems.  This can be reset for any new platform
so move the check to only RN/CZN/BRC case.

Fixes: f6045de1f532 ("platform/x86: amd-pmc: Export Idlemask values based on the APU")
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20230409185348.556161-5-Shyam-sundar.S-k@amd.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/amd/pmc.c