From: Kukjin Kim <kgene.kim@samsung.com>
To: Jonghwan Choi <jhbird.choi@gmail.com>
Cc: linux-samsung-soc@vger.kernel.org,
Kukjin Kim <kgene.kim@samsung.com>,
Jonghwan Choi <jhbird.choi@samsung.com>
Subject: Re: [PATCH] ARM: EXYNOS: Fix compile error in pm.c
Date: Tue, 10 Apr 2012 10:04:31 -0700 [thread overview]
Message-ID: <4F84681F.9020106@samsung.com> (raw)
In-Reply-To: <1333754316-9194-1-git-send-email-jhbird.choi@samsung.com>
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.
prev parent reply other threads:[~2012-04-10 17:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-06 23:18 [PATCH] ARM: EXYNOS: Fix compile error in pm.c Jonghwan Choi
2012-04-10 17:04 ` Kukjin Kim [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F84681F.9020106@samsung.com \
--to=kgene.kim@samsung.com \
--cc=jhbird.choi@gmail.com \
--cc=jhbird.choi@samsung.com \
--cc=linux-samsung-soc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.