aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform
diff options
context:
space:
mode:
authorMario Limonciello <mario.limonciello@amd.com>2021-07-07 09:16:47 -0500
committerHans de Goede <hdegoede@redhat.com>2021-07-14 15:39:47 +0200
commita973c983375c37301645d4fea056b1f4bff77bf7 (patch)
treec9b84ea3d285b7e11762d7a865247986423a1779 /drivers/platform
parentplatform/x86: amd-pmc: Add new acpi id for future PMC controllers (diff)
downloadlinux-dev-a973c983375c37301645d4fea056b1f4bff77bf7.tar.xz
linux-dev-a973c983375c37301645d4fea056b1f4bff77bf7.zip
platform/x86: amd-pmc: Use return code on suspend
Right now the driver will still return success even if the OS_HINT command failed to send to the SMU. In the rare event of a failure, the suspend should really be aborted here so that relevant logs can may be captured. Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Acked-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com> Link: https://lore.kernel.org/r/20210707141647.8871-1-mario.limonciello@amd.com Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r--drivers/platform/x86/amd-pmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/amd-pmc.c b/drivers/platform/x86/amd-pmc.c
index d2f9a62e1166..680f94c7e075 100644
--- a/drivers/platform/x86/amd-pmc.c
+++ b/drivers/platform/x86/amd-pmc.c
@@ -353,7 +353,7 @@ static int __maybe_unused amd_pmc_suspend(struct device *dev)
if (rc)
dev_err(pdev->dev, "suspend failed\n");
- return 0;
+ return rc;
}
static int __maybe_unused amd_pmc_resume(struct device *dev)