]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: amd-pmc: Only report STB errors when STB enabled
authorMario Limonciello <mario.limonciello@amd.com>
Thu, 17 Mar 2022 19:03:01 +0000 (14:03 -0500)
committerHans de Goede <hdegoede@redhat.com>
Fri, 18 Mar 2022 11:02:40 +0000 (12:02 +0100)
commit9cb563de377e151785a6dbbef717c1aa4ab4ad0b
tree86538c9ca7e34605fce18bc2de1226b330034220
parentf1f925835d22787badbbae05f265156a082973c8
platform/x86: amd-pmc: Only report STB errors when STB enabled

Currently if STB is disabled but an earlier function reported an
error an incorrect error will be emitted about failing to write to
STB.

Correct this logic error by only showing errors when STB is enabled.

Suggested-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20220317190301.6818-1-mario.limonciello@amd.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/amd-pmc.c