]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: amd-pmc: Use return code on suspend
authorMario Limonciello <mario.limonciello@amd.com>
Wed, 7 Jul 2021 14:16:47 +0000 (09:16 -0500)
committerHans de Goede <hdegoede@redhat.com>
Wed, 14 Jul 2021 13:39:47 +0000 (15:39 +0200)
commit58ae656c3f610b07711841a16e33f596ee6ea58a
treec9b84ea3d285b7e11762d7a865247986423a1779
parent5dafdaa2bafa23f8ef3bcc5f23c82c875f741e42
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>
drivers/platform/x86/amd-pmc.c