linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: qcom: select ARM_CPU_SUSPEND for power management
@ 2015-11-24 22:13 Arnd Bergmann
  2015-11-25  1:10 ` Stephen Boyd
  2015-11-25 21:06 ` Andy Gross
  0 siblings, 2 replies; 3+ messages in thread
From: Arnd Bergmann @ 2015-11-24 22:13 UTC (permalink / raw)
  To: linux-arm-kernel

The qcom spm driver uses cpu_resume_arm(), which is not included
in the kernel in all configurations:

drivers/built-in.o: In function `qcom_cpu_spc':
:(.text+0xbc022): undefined reference to `cpu_suspend'
drivers/built-in.o: In function `qcom_cpuidle_init':
:(.init.text+0x610c): undefined reference to `cpu_resume_arm'

This adds a 'select' Kconfig statement to ensure it's always
enabled.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
This has been broken for a while but not even shown up in many thousands of
randconfig builds until today. Please queue it up for 4.5 unless you think
it should really go into 4.4 as well.

diff --git a/drivers/soc/qcom/Kconfig b/drivers/soc/qcom/Kconfig
index 3c6e3893b76c..461b387d03cc 100644
--- a/drivers/soc/qcom/Kconfig
+++ b/drivers/soc/qcom/Kconfig
@@ -13,6 +13,7 @@ config QCOM_GSBI
 config QCOM_PM
 	bool "Qualcomm Power Management"
 	depends on ARCH_QCOM && !ARM64
+	select ARM_CPU_SUSPEND
 	select QCOM_SCM
 	help
 	  QCOM Platform specific power driver to manage cores and L2 low power

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

* [PATCH] ARM: qcom: select ARM_CPU_SUSPEND for power management
  2015-11-24 22:13 [PATCH] ARM: qcom: select ARM_CPU_SUSPEND for power management Arnd Bergmann
@ 2015-11-25  1:10 ` Stephen Boyd
  2015-11-25 21:06 ` Andy Gross
  1 sibling, 0 replies; 3+ messages in thread
From: Stephen Boyd @ 2015-11-25  1:10 UTC (permalink / raw)
  To: linux-arm-kernel

On 11/24, Arnd Bergmann wrote:
> The qcom spm driver uses cpu_resume_arm(), which is not included
> in the kernel in all configurations:
> 
> drivers/built-in.o: In function `qcom_cpu_spc':
> :(.text+0xbc022): undefined reference to `cpu_suspend'
> drivers/built-in.o: In function `qcom_cpuidle_init':
> :(.init.text+0x610c): undefined reference to `cpu_resume_arm'
> 
> This adds a 'select' Kconfig statement to ensure it's always
> enabled.
> 
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---

Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project

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

* [PATCH] ARM: qcom: select ARM_CPU_SUSPEND for power management
  2015-11-24 22:13 [PATCH] ARM: qcom: select ARM_CPU_SUSPEND for power management Arnd Bergmann
  2015-11-25  1:10 ` Stephen Boyd
@ 2015-11-25 21:06 ` Andy Gross
  1 sibling, 0 replies; 3+ messages in thread
From: Andy Gross @ 2015-11-25 21:06 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, Nov 24, 2015 at 11:13:09PM +0100, Arnd Bergmann wrote:
> The qcom spm driver uses cpu_resume_arm(), which is not included
> in the kernel in all configurations:
> 
> drivers/built-in.o: In function `qcom_cpu_spc':
> :(.text+0xbc022): undefined reference to `cpu_suspend'
> drivers/built-in.o: In function `qcom_cpuidle_init':
> :(.init.text+0x610c): undefined reference to `cpu_resume_arm'
> 
> This adds a 'select' Kconfig statement to ensure it's always
> enabled.
> 
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
> This has been broken for a while but not even shown up in many thousands of
> randconfig builds until today. Please queue it up for 4.5 unless you think
> it should really go into 4.4 as well.

Thanks Arnd.  I'll add this to my list for the pull request.

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

end of thread, other threads:[~2015-11-25 21:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-24 22:13 [PATCH] ARM: qcom: select ARM_CPU_SUSPEND for power management Arnd Bergmann
2015-11-25  1:10 ` Stephen Boyd
2015-11-25 21:06 ` Andy Gross

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).