All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: EXYNOS: Fix compile error in pm.c
@ 2012-04-06 23:18 Jonghwan Choi
  2012-04-10 17:04 ` Kukjin Kim
  0 siblings, 1 reply; 2+ messages in thread
From: Jonghwan Choi @ 2012-04-06 23:18 UTC (permalink / raw)
  To: linux-samsung-soc; +Cc: Kukjin Kim, Jonghwan Choi

Fix compile error when ARCH_EXYNOS5 is only enabled without ARCH_EXYNOS4.

arch/arm/mach-exynos/built-in.o: In function `exynos4_pm_prepare':
linux/arch/arm/mach-exynos/pm.c:185: undefined reference to `exynos4_sys_powerdown_conf'
arch/arm/mach-exynos/built-in.o: In function `__virt_to_phys':
linux/arch/arm/include/asm/memory.h:175: undefined reference to `s3c_cpu_resume'
linux/arch/arm/include/asm/memory.h:175: undefined reference to `s3c_cpu_resume'
arch/arm/plat-samsung/built-in.o: In function `s3c_irqext_wake':
linux/arch/arm/plat-samsung/pm.c:151: undefined reference to `s3c_irqwake_eintallow'
arch/arm/plat-samsung/built-in.o: In function `s3c_pm_enter':
linux/arch/arm/plat-samsung/pm.c:274: undefined reference to `s3c_pm_save_core'
linux/arch/arm/plat-samsung/pm.c:278: undefined reference to `s3c_pm_configure_extint'
linux/arch/arm/plat-samsung/pm.c:307: undefined reference to `s3c_pm_restore_core'
linux/arch/arm/plat-samsung/pm.c:329: undefined reference to `s3c_irqwake_intallow'
linux/arch/arm/plat-samsung/pm.c:329: undefined reference to `s3c_irqwake_eintallow'

Signed-off-by: Jonghwan Choi <jhbird.choi@samsung.com>
---
 arch/arm/mach-exynos/Kconfig  |    2 ++
 arch/arm/mach-exynos/Makefile |    2 +-
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/arch/arm/mach-exynos/Kconfig b/arch/arm/mach-exynos/Kconfig
index 0491cee..676d3fa 100644
--- a/arch/arm/mach-exynos/Kconfig
+++ b/arch/arm/mach-exynos/Kconfig
@@ -61,6 +61,8 @@ config SOC_EXYNOS5250
 	bool "SAMSUNG EXYNOS5250"
 	default y
 	depends on ARCH_EXYNOS5
+	select S5P_PM if PM
+	select S5P_SLEEP if PM
 	help
 	  Enable EXYNOS5250 SoC support
 
diff --git a/arch/arm/mach-exynos/Makefile b/arch/arm/mach-exynos/Makefile
index 8631840..1524efb 100644
--- a/arch/arm/mach-exynos/Makefile
+++ b/arch/arm/mach-exynos/Makefile
@@ -22,7 +22,7 @@ obj-$(CONFIG_PM)		+= pm.o
 obj-$(CONFIG_PM_GENERIC_DOMAINS) += pm_domains.o
 obj-$(CONFIG_CPU_IDLE)		+= cpuidle.o
 
-obj-$(CONFIG_ARCH_EXYNOS4)	+= pmu.o
+obj-$(CONFIG_ARCH_EXYNOS)	+= pmu.o
 
 obj-$(CONFIG_SMP)		+= platsmp.o headsmp.o
 
-- 
1.7.0.4

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

* Re: [PATCH] ARM: EXYNOS: Fix compile error in pm.c
  2012-04-06 23:18 [PATCH] ARM: EXYNOS: Fix compile error in pm.c Jonghwan Choi
@ 2012-04-10 17:04 ` Kukjin Kim
  0 siblings, 0 replies; 2+ messages in thread
From: Kukjin Kim @ 2012-04-10 17:04 UTC (permalink / raw)
  To: Jonghwan Choi; +Cc: linux-samsung-soc, Kukjin Kim, Jonghwan Choi

Jonghwan Choi wrote:
> Fix compile error when ARCH_EXYNOS5 is only enabled without ARCH_EXYNOS4.
> 
> arch/arm/mach-exynos/built-in.o: In function `exynos4_pm_prepare':
> linux/arch/arm/mach-exynos/pm.c:185: undefined reference to `exynos4_sys_powerdown_conf'
> arch/arm/mach-exynos/built-in.o: In function `__virt_to_phys':
> linux/arch/arm/include/asm/memory.h:175: undefined reference to `s3c_cpu_resume'
> linux/arch/arm/include/asm/memory.h:175: undefined reference to `s3c_cpu_resume'
> arch/arm/plat-samsung/built-in.o: In function `s3c_irqext_wake':
> linux/arch/arm/plat-samsung/pm.c:151: undefined reference to `s3c_irqwake_eintallow'
> arch/arm/plat-samsung/built-in.o: In function `s3c_pm_enter':
> linux/arch/arm/plat-samsung/pm.c:274: undefined reference to `s3c_pm_save_core'
> linux/arch/arm/plat-samsung/pm.c:278: undefined reference to `s3c_pm_configure_extint'
> linux/arch/arm/plat-samsung/pm.c:307: undefined reference to `s3c_pm_restore_core'
> linux/arch/arm/plat-samsung/pm.c:329: undefined reference to `s3c_irqwake_intallow'
> linux/arch/arm/plat-samsung/pm.c:329: undefined reference to `s3c_irqwake_eintallow'
> 

Yes, right. When we build for exynos5 with only ARCH_EXYNOS5, above
build failure happens. But this cannot fix it. See below my comments.

> Signed-off-by: Jonghwan Choi<jhbird.choi@samsung.com>
> ---
>   arch/arm/mach-exynos/Kconfig  |    2 ++
>   arch/arm/mach-exynos/Makefile |    2 +-
>   2 files changed, 3 insertions(+), 1 deletions(-)
> 
> diff --git a/arch/arm/mach-exynos/Kconfig b/arch/arm/mach-exynos/Kconfig
> index 0491cee..676d3fa 100644
> --- a/arch/arm/mach-exynos/Kconfig
> +++ b/arch/arm/mach-exynos/Kconfig
> @@ -61,6 +61,8 @@ config SOC_EXYNOS5250
>   	bool "SAMSUNG EXYNOS5250"
>   	default y
>   	depends on ARCH_EXYNOS5
> +	select S5P_PM if PM
> +	select S5P_SLEEP if PM

No, current mainline cannot support PM for exynos5 and we need Jongpill
Lee's patch for it.

>   	help
>   	  Enable EXYNOS5250 SoC support
> 
> diff --git a/arch/arm/mach-exynos/Makefile b/arch/arm/mach-exynos/Makefile
> index 8631840..1524efb 100644
> --- a/arch/arm/mach-exynos/Makefile
> +++ b/arch/arm/mach-exynos/Makefile
> @@ -22,7 +22,7 @@ obj-$(CONFIG_PM)		+= pm.o
>   obj-$(CONFIG_PM_GENERIC_DOMAINS) += pm_domains.o
>   obj-$(CONFIG_CPU_IDLE)		+= cpuidle.o
> 
> -obj-$(CONFIG_ARCH_EXYNOS4)	+= pmu.o
> +obj-$(CONFIG_ARCH_EXYNOS)	+= pmu.o
> 
same as above, not support yet.

>   obj-$(CONFIG_SMP)		+= platsmp.o headsmp.o
> 

I think, we need to fix it but need other method. Could you please check it?

Thanks.

Best regards,
Kgene.
--
Kukjin Kim <kgene.kim@samsung.com>, Senior Engineer,
SW Solution Development Team, Samsung Electronics Co., Ltd.

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

end of thread, other threads:[~2012-04-10 17:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-06 23:18 [PATCH] ARM: EXYNOS: Fix compile error in pm.c Jonghwan Choi
2012-04-10 17:04 ` Kukjin Kim

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.