From patchwork Mon Apr 8 09:57:33 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kim Kukjin X-Patchwork-Id: 2406351 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 2DF7CDFB78 for ; Mon, 8 Apr 2013 09:57:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935939Ab3DHJ5h (ORCPT ); Mon, 8 Apr 2013 05:57:37 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:30517 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935672Ab3DHJ5e (ORCPT ); Mon, 8 Apr 2013 05:57:34 -0400 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MKX0005DKZS97V0@mailout3.samsung.com>; Mon, 08 Apr 2013 18:57:33 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.48]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id 98.60.07735.D8492615; Mon, 08 Apr 2013 18:57:33 +0900 (KST) X-AuditID: cbfee68e-b7f946d000001e37-56-5162948d87b2 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id EC.74.17838.D8492615; Mon, 08 Apr 2013 18:57:33 +0900 (KST) Received: from DOKGENEKIM03 ([12.23.120.199]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MKX00CEWKZXJ840@mmp2.samsung.com>; Mon, 08 Apr 2013 18:57:33 +0900 (KST) From: Kukjin Kim To: 'Sylwester Nawrocki' Cc: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, 'Sylwester Nawrocki' , stable@vger.kernel.org References: <1365366442-16025-1-git-send-email-s.nawrocki@samsung.com> In-reply-to: <1365366442-16025-1-git-send-email-s.nawrocki@samsung.com> Subject: RE: [PATCH] ARM: Samsung: Select ARM_CPU_SUSPEND when required Date: Mon, 08 Apr 2013 18:57:33 +0900 Message-id: <2cd601ce343f$7d6aac50$784004f0$%kim@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac4zzlc5CvYu76EbTyS+jitaW+ZqbgAcEvpg Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrEIsWRmVeSWpSXmKPExsVy+t8zA93eKUmBBj3/RS02Pb7GajHj/D4m i8Nv2lktFmx8xGgx7/NOJgdWj52z7rJ7bF5S79G3ZRWjx+dNcgEsUVw2Kak5mWWpRfp2CVwZ hzqbmQpWSVVsW9LE2MDYLdbFyMkhIWAi8anvKjOELSZx4d56ti5GLg4hgWWMEns6z7PDFD1a eZoVIjGdUeLk65VQVX8ZJT43L2MBqWIT0JA4/P4ZWIeIgLlE579+ZpAiZoEpjBJX//cxgSSE BNwkVn7fyQZicwq4S3y4MA2sWRjIbjh+Dcjm4GARUJVY90sGJMwrYCuxaeVJdghbUOLH5Htg 5cwCWhLrdx5ngrDlJTavecsM0iohoC7x6K8uxAlGEguvbIEqF5HY9+IdI8g5EgLX2CVuTJ0L 1ssiICDxbfIhFoheWYlNB6AhISlxcMUNlgmMErOQbJ6FZPMsJJtnIVmxgJFlFaNoakFyQXFS epGRXnFibnFpXrpecn7uJkZIfPbtYLx5wPoQYzLQ+onMUqLJ+cD4ziuJNzQ2M7IwNTE1NjK3 NCNNWEmcV63FOlBIID2xJDU7NbUgtSi+qDQntfgQIxMHp1QDI9/Ll9r9gUIGIRvW7hXaMH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7cf0f6rbDiuxFGckGmoxFxUnAgC8Ju1SQgMAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Sylwester Nawrocki wrote: > > The power management code of S3C24XX, S3C64XX, S5PV210 platform in > arch/arm/plat-samsung/, arch/arm/mach-s3c24xx/, arch/arm/mach-s3c64xx/ > directories uses generic cpu_suspend routine. Make sure it is compiled > in when building with power management support. Without this patch > compilation fails with errors as below. It can be reproduced by using > default config files with CONFIG_SUSPEND disabled and CONFIG_PM_RUNTIME > enabled. > > - s5pv210_defconfig > arch/arm/plat-samsung/built-in.o: In function `s3c_pm_enter': > arch/arm/plat-samsung/pm.c:304: undefined reference to `cpu_suspend' > arch/arm/plat-samsung/built-in.o: In function `s3c_cpu_resume': > arch/arm/plat-samsung/s5p-sleep.S:74: undefined reference to `cpu_resume' > > - s3c24xx_defconfig > arch/arm/mach-s3c24xx/built-in.o: In function `s3c_cpu_resume': > arch/arm/mach-s3c24xx/sleep.S:83: undefined reference to `cpu_resume' > arch/arm/plat-samsung/built-in.o: In function `s3c_pm_enter': > arch/arm/plat-samsung/pm.c:304: undefined reference to `cpu_suspend' > > - s3c64xx_defconfig > arch/arm/mach-s3c64xx/built-in.o: In function `s3c_cpu_resume': > arch/arm/mach-s3c64xx/sleep.S:72: undefined reference to `cpu_resume' > arch/arm/plat-samsung/built-in.o: In function `s3c_pm_enter': > arch/arm/plat-samsung/pm.c:304: undefined reference to `cpu_suspend' > > To fix this issue select ARM_CPU_SUSPEND for PLAT_SAMSUNG when PM is set. > > The build break occurs for kernels at least back to v3.0, however this > patch applies without conflicts only back to v3.7. > > Signed-off-by: Sylwester Nawrocki > Cc: stable@vger.kernel.org > --- > arch/arm/plat-samsung/Kconfig | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git a/arch/arm/plat-samsung/Kconfig b/arch/arm/plat-samsung/Kconfig > index 54d1861..02355ba 100644 > --- a/arch/arm/plat-samsung/Kconfig > +++ b/arch/arm/plat-samsung/Kconfig > @@ -10,6 +10,7 @@ config PLAT_SAMSUNG > default y > select GENERIC_IRQ_CHIP > select NO_IOPORT > + select ARM_CPU_SUSPEND if PM > help > Base platform code for all Samsung SoC based systems > > -- > 1.7.4.1 Yes, right. The pm.c in plat-samsung should be built with arch/arm/kernel/sleep.S and suspend.c. BTW it should be shown in alphabetical order and we don't need more following in mach-exynos. --------8<----------------8<-------- --------8<----------------8<-------- If you have any objections, let me know. Thanks. - Kukjin --- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/mach-exynos/Kconfig b/arch/arm/mach-exynos/Kconfig index 2f45906..bc0a8b2 100644 --- a/arch/arm/mach-exynos/Kconfig +++ b/arch/arm/mach-exynos/Kconfig @@ -31,7 +31,6 @@ config CPU_EXYNOS4210 bool "SAMSUNG EXYNOS4210" default y depends on ARCH_EXYNOS4 - select ARM_CPU_SUSPEND if PM select PM_GENERIC_DOMAINS select S5P_PM if PM select S5P_SLEEP if PM diff --git a/arch/arm/plat-samsung/Kconfig b/arch/arm/plat-samsung/Kconfig index b708b3e..30a976d 100644 --- a/arch/arm/plat-samsung/Kconfig +++ b/arch/arm/plat-samsung/Kconfig @@ -8,6 +8,7 @@ config PLAT_SAMSUNG Bool depends on PLAT_S3C24XX || ARCH_S3C64XX || PLAT_S5P default y + select ARM_CPU_SUSPEND if PM select GENERIC_IRQ_CHIP select NO_IOPORT help