linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] cpuidle: tegra: add ARCH_SUSPEND_POSSIBLE dependency
@ 2021-10-13 16:01 Arnd Bergmann
  2021-10-13 20:49 ` Dmitry Osipenko
  2021-10-13 22:25 ` Dmitry Osipenko
  0 siblings, 2 replies; 8+ messages in thread
From: Arnd Bergmann @ 2021-10-13 16:01 UTC (permalink / raw)
  To: Rafael J. Wysocki, Daniel Lezcano, Dmitry Osipenko, Thierry Reding
  Cc: Arnd Bergmann, AngeloGioacchino Del Regno, He Ying, linux-pm,
	linux-kernel

From: Arnd Bergmann <arnd@arndb.de>

Some StrongARM processors don't support suspend, which leads
to a build failure with the tegra cpuidle driver:

WARNING: unmet direct dependencies detected for ARM_CPU_SUSPEND
  Depends on [n]: ARCH_SUSPEND_POSSIBLE [=n]
  Selected by [y]:
  - ARM_TEGRA_CPUIDLE [=y] && CPU_IDLE [=y] && (ARM [=y] || ARM64) && (ARCH_TEGRA [=n] || COMPILE_TEST [=y]) && !ARM64 && MMU [=y]

arch/arm/kernel/sleep.o: in function `__cpu_suspend':
(.text+0x68): undefined reference to `cpu_sa110_suspend_size'

Add an explicit dependency to make randconfig builds avoid
this combination.

Fixes: faae6c9f2e68 ("cpuidle: tegra: Enable compile testing")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 drivers/cpuidle/Kconfig.arm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/cpuidle/Kconfig.arm b/drivers/cpuidle/Kconfig.arm
index 2cc3c208a180..af97992eaa82 100644
--- a/drivers/cpuidle/Kconfig.arm
+++ b/drivers/cpuidle/Kconfig.arm
@@ -100,6 +100,7 @@ config ARM_MVEBU_V7_CPUIDLE
 config ARM_TEGRA_CPUIDLE
 	bool "CPU Idle Driver for NVIDIA Tegra SoCs"
 	depends on (ARCH_TEGRA || COMPILE_TEST) && !ARM64 && MMU
+	depends on ARCH_SUSPEND_POSSIBLE
 	select ARCH_NEEDS_CPU_IDLE_COUPLED if SMP
 	select ARM_CPU_SUSPEND
 	help
-- 
2.29.2


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-03-16 23:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-13 16:01 [PATCH] cpuidle: tegra: add ARCH_SUSPEND_POSSIBLE dependency Arnd Bergmann
2021-10-13 20:49 ` Dmitry Osipenko
2021-10-13 21:55   ` Arnd Bergmann
2021-10-13 22:25     ` Dmitry Osipenko
2021-10-13 22:25 ` Dmitry Osipenko
2021-10-14 14:41   ` Arnd Bergmann
2021-10-15  6:49     ` Dmitry Osipenko
2022-03-16 23:40   ` Randy Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).