linux/drivers/platform/x86/amd/pmf
Mario Limonciello d7186dfd41
platform/x86/amd: pmf: Simplify error flow in amd_pmf_init_smart_pc()
commit 5b1122fc49 ("platform/x86/amd/pmf: fix cleanup in
amd_pmf_init_smart_pc()") adjusted the error handling flow to use a ladder
but this isn't actually needed because work is only scheduled in
amd_pmf_start_policy_engine() and with device managed cleanups pointers
for allocations don't need to be freed.

Adjust the error flow to a single call to amd_pmf_deinit_smart_pc() for
the cases that need to clean up.

Cc: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/20250512211154.2510397-4-superm1@kernel.org
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20250522003457.1516679-4-superm1@kernel.org
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
2025-06-10 10:42:15 +03:00
..
acpi.c platform/x86/amd/pmf: convert timeouts to secs_to_jiffies() 2025-03-21 18:07:38 +02:00
auto-mode.c platform/x86: amd: pmf: Fix STT limits 2025-04-11 12:58:33 +03:00
cnqf.c platform/x86: amd: pmf: Fix STT limits 2025-04-11 12:58:33 +03:00
core.c platform/x86/amd: pmf: Use device managed allocations 2025-06-10 10:42:11 +03:00
Kconfig x86/amd_nb: Move SMN access code to a new amd_node driver 2025-01-08 10:59:44 +01:00
Makefile platform/x86: amd: Use *-y instead of *-objs in Makefiles 2025-02-24 17:15:02 +02:00
pmf.h platform/x86: amd: pmf: Fix STT limits 2025-04-11 12:58:33 +03:00
spc.c platform/x86/amd: pmf: Fix missing hidden options for Smart PC 2025-03-13 14:53:33 +02:00
sps.c platform/x86: amd: pmf: Fix STT limits 2025-04-11 12:58:33 +03:00
tee-if.c platform/x86/amd: pmf: Simplify error flow in amd_pmf_init_smart_pc() 2025-06-10 10:42:15 +03:00