platform/x86/amd: pmc: Always write to the STB
authorMario Limonciello <mario.limonciello@amd.com>
Mon, 29 Aug 2022 16:29:51 +0000 (11:29 -0500)
committerHans de Goede <hdegoede@redhat.com>
Fri, 9 Sep 2022 15:37:41 +0000 (17:37 +0200)
commit90bec2855c566b6d07cc3e2bb47befb6266cf1ec
tree488dcfbad83ddb60f5c771e16a2d5d7eb4d8b483
parente24faabf5f368c031ad50f0d915a01e1b591f536
platform/x86/amd: pmc: Always write to the STB

The kernel parameter `enable_stb` currently gates the access to the STB
from debugfs and also controls whether the kernel writes events to the
STB.

Even if not accessing STB data from the kernel it's useful to have this
data stored to review the STB. So in suspend/resume always write it.

Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20220829162953.5947-4-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