mirror of
https://github.com/torvalds/linux.git
synced 2024-12-03 17:41:22 +00:00
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>
This commit is contained in:
parent
83cbaf1427
commit
a973c98337
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user