]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
platform/x86/intel/pmc/mtl: Use return value from pmc_core_ssram_init()
authorDavid E. Box <david.e.box@linux.intel.com>
Wed, 29 Nov 2023 22:21:26 +0000 (14:21 -0800)
committerHans de Goede <hdegoede@redhat.com>
Mon, 4 Dec 2023 13:53:43 +0000 (14:53 +0100)
commit642dd26f58d91f4bb2e2fcaaf178bbc35369b73a
treefd191689d731876c9770799b33cc84b586f0a634
parenta01486dc4bb17de976c6d0a4b1ad5f8106525dfb
platform/x86/intel/pmc/mtl: Use return value from pmc_core_ssram_init()

Instead of checking for a NULL regbase, use the return value from
pmc_core_ssram_init() to check if PMC discovery was successful. If not, use
the legacy enumeration method (which only works for the primary PMC).

Signed-off-by: David E. Box <david.e.box@linux.intel.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20231129222132.2331261-15-david.e.box@linux.intel.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/intel/pmc/mtl.c