Skip to contentSkip to conversation

PM / Kconfig: Do not select PM directly from Kconfig files

PATCH In review Rafael J. Wysocki 3 participants 4 messages Nov 29, 2014 – Dec 2, 2014 SuperH

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PM / Kconfig: Do not select PM directly from Kconfig files

From: Rafael J. Wysocki <[email protected]>

It is not valid to select CONFIG_PM directly without selecting CONFIG_PM_SLEEP or CONFIG_PM_RUNTIME too, because that breaks dependencies (ia64 does that) and it is not necessary to select CONFIG_PM directly if CONFIG_PM_SLEEP or CONFIG_PM_RUNTIME is set, because it will be set automatically then (sh does that).

Fix those mistakes.

---
 arch/ia64/Kconfig |    1 -
 arch/sh/Kconfig   |    1 -
 2 files changed, 2 deletions(-)
arch/ia64/Kconfig +0 -1
Index: linux-pm/arch/ia64/Kconfig
===================================================================
@@ -11,7 +11,6 @@ config IA64
 	select PCI if (!IA64_HP_SIM)
 	select ACPI if (!IA64_HP_SIM)
 	select ARCH_MIGHT_HAVE_ACPI_PDC if ACPI
-	select PM if (!IA64_HP_SIM)
 	select HAVE_UNSTABLE_SCHED_CLOCK
 	select HAVE_IDE
 	select HAVE_OPROFILE
arch/sh/Kconfig +0 -1
Index: linux-pm/arch/sh/Kconfig
===================================================================
@@ -222,7 +222,6 @@ config CPU_SHX3
 config ARCH_SHMOBILE
 	bool
 	select ARCH_SUSPEND_POSSIBLE
-	select PM
 	select PM_RUNTIME
 
 config CPU_HAS_PMU
Acked-by on v1 1/1
#1 lore raw
Quoted 8 lines · Rafael J. Wysocki

From: Rafael J. Wysocki <[email protected]>

It is not valid to select CONFIG_PM directly without selecting CONFIG_PM_SLEEP or CONFIG_PM_RUNTIME too, because that breaks dependencies (ia64 does that) and it is not necessary to select CONFIG_PM directly if CONFIG_PM_SLEEP or CONFIG_PM_RUNTIME is set, because it will be set automatically then (sh does that).

Quoted 6 lines

Fix those mistakes.

---
 arch/ia64/Kconfig |    1 -
 arch/sh/Kconfig   |    1 -

For the sh part:

Note that sh is orphaned, so you should resend your patch to Andrew Morton, or queue it yourself.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

#2 lore raw
Quoted 11 lines · Geert Uytterhoeven
Quoted 10 lines · Rafael J. Wysocki

From: Rafael J. Wysocki <[email protected]>

It is not valid to select CONFIG_PM directly without selecting CONFIG_PM_SLEEP or CONFIG_PM_RUNTIME too, because that breaks dependencies (ia64 does that) and it is not necessary to select CONFIG_PM directly if CONFIG_PM_SLEEP or CONFIG_PM_RUNTIME is set, because it will be set automatically then (sh does that).

Fix those mistakes.

Quoted 8 lines
Quoted 4 lines
---
 arch/ia64/Kconfig |    1 -
 arch/sh/Kconfig   |    1 -

For the sh part:

Thanks!

Quoted 2 lines

Note that sh is orphaned, so you should resend your patch to Andrew Morton, or queue it yourself.

Since it depends on material already in my tree, I'm going to queue it up myself.

Rafael

Reviewed-by on v1 1/1
#3 lore raw
In reply to Rafael J. Wysocki
Quoted 11 lines · Rafael J. Wysocki

From: Rafael J. Wysocki <[email protected]>

It is not valid to select CONFIG_PM directly without selecting CONFIG_PM_SLEEP or CONFIG_PM_RUNTIME too, because that breaks dependencies (ia64 does that) and it is not necessary to select CONFIG_PM directly if CONFIG_PM_SLEEP or CONFIG_PM_RUNTIME is set, because it will be set automatically then (sh does that).

Fix those mistakes.