Skip to contentSkip to conversation

platform/x86: amd-pmc: Make CONFIG_AMD_PMC depend on RTC_CLASS

PATCH In review Hans de Goede 2 participants 2 messages Nov 2, 2021 x86 platform drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 platform/x86: amd-pmc: Make CONFIG_AMD_PMC depend on RTC_CLASS

Since the "Add special handling for timer based S0i3 wakeup" changes the amd-pmc code now relies on symbols from the RTC-class code, add a dependency for this to Kconfig.

Fixes 59348401ebed ("platform/x86: amd-pmc: Add special handling for timer based S0i3 wakeup")
Cc Mario Limonciello <[email protected]>
---
 drivers/platform/x86/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/platform/x86/Kconfig +1 -1
index d4c079f4afc6..7400bc5da5be 100644
@@ -185,7 +185,7 @@ config ACER_WMI
 
 config AMD_PMC
 	tristate "AMD SoC PMC driver"
-	depends on ACPI && PCI
+	depends on ACPI && PCI && RTC_CLASS
 	help
 	  The driver provides support for AMD Power Management Controller
 	  primarily responsible for S2Idle transactions that are driven from
Signature · 1 line
2.31.1
Acked-by on v1 1/1
#1 lore raw

[Public]

Quoted 15 lines

-----Original Message-----
From: Hans de Goede <[email protected]>
Sent: Tuesday, November 2, 2021 10:33
To: Mark Gross <[email protected]>; Andy Shevchenko <[email protected]>
Cc: Hans de Goede <[email protected]>; platform-driver- [email protected]; Limonciello, Mario <[email protected]>; Randy Dunlap <[email protected]>
Subject: [PATCH] platform/x86: amd-pmc: Make CONFIG_AMD_PMC depend on RTC_CLASS

Since the "Add special handling for timer based S0i3 wakeup" changes the amd-pmc code now relies on symbols from the RTC-class code, add a dependency for this to Kconfig.

Quoted 5 lines
Fixes 59348401ebed ("platform/x86: amd-pmc: Add special handling for timer

based S0i3 wakeup")

Thanks!

Quoted 19 lines
---
 drivers/platform/x86/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/platform/x86/Kconfig +1 -2
index d4c079f4afc6..7400bc5da5be 100644
@@ -185,7 +185,7 @@ config ACER_WMI
 
 config AMD_PMC
 	tristate "AMD SoC PMC driver"
-	depends on ACPI && PCI
+	depends on ACPI && PCI && RTC_CLASS
 	help
 	  The driver provides support for AMD Power Management Controller
 	  primarily responsible for S2Idle transactions that are driven from
--

2.31.1