Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754534AbbKCCWj (ORCPT ); Mon, 2 Nov 2015 21:22:39 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:45023 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752668AbbKCCWg (ORCPT ); Mon, 2 Nov 2015 21:22:36 -0500 X-AuditID: cbfec7f4-f79c56d0000012ee-1b-56381a69a531 Subject: Re: [PATCH v3 7/7] drivers: soc: Add support for Exynos PMU driver To: Pankaj Dubey , linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <1445864143-25695-1-git-send-email-pankaj.dubey@samsung.com> <1445864143-25695-8-git-send-email-pankaj.dubey@samsung.com> Cc: kgene.kim@samsung.com, thomas.ab@samsung.com, amitdanielk@gmail.com From: Krzysztof Kozlowski X-Enigmail-Draft-Status: N1110 Message-id: <56381A66.1010406@samsung.com> Date: Tue, 03 Nov 2015 11:22:30 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-version: 1.0 In-reply-to: <1445864143-25695-8-git-send-email-pankaj.dubey@samsung.com> Content-type: text/plain; charset=windows-1252 Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrMLMWRmVeSWpSXmKPExsVy+t/xy7qZUhZhBod2alp8XP2SzeL1C0OL 3gVX2Sw2Pb7GanF51xw2ixnn9zFZLNr6hd2iYxmjA4fHzll32T02L6n36NuyitHj8ya5AJYo LpuU1JzMstQifbsErowtHXcYC95pVexcZtfA+Fy5i5GTQ0LAROL27LmMELaYxIV769m6GLk4 hASWMkp0LT7ODOF8YZTY2HGfCaRKWMBb4ue0WWBVIgJTGCUu9iwDaxcSaGeUWDRBHsRmFnCX WNn9ByzOJmAssXn5EjaIFXISvd2TWEBsXgEtiTc/VrCC2CwCqhLT/74Bi4sKREhMnNDAClEj KPFj8j2wOKeAp8SJng1AF3EAzdeTuH9RC2KVvMTmNW+ZJzAKzkLSMQuhahaSqgWMzKsYRVNL kwuKk9JzDfWKE3OLS/PS9ZLzczcxQoL+yw7GxcesDjEKcDAq8fAuWGIeJsSaWFZcmXuIUYKD WUmE9yWXRZgQb0piZVVqUX58UWlOavEhRmkOFiVx3rm73ocICaQnlqRmp6YWpBbBZJk4OKUa GDdb8Nv6ca2/t6ddvlCmQ2JKVuCVOwtOzHbUtV0941PXuyVlUuIsAemOGeuZRRxmv63uCInh VJt/x2/F2rlTzGaty3E2D/gZlRcucTjW6Nk9qX8p6pzvz1c5p4Zt0WQ1SD546JA3+4yOigS+ RKaNu/9uKz4X/EuMYbVem9WbxWviJl2vf9r5QImlOCPRUIu5qDgRALEvapl2AgAA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 5609 Lines: 127 On 26.10.2015 21:55, Pankaj Dubey wrote: > This patch moves Exynos PMU driver implementation from "arm/mach-exynos" > to "drivers/soc/samsung". This driver is mainly used for setting misc > bits of register from PMU IP of Exynos SoC which will be required to > configure before Suspend/Resume. Currently all these settings are done > in "arch/arm/mach-exynos/pmu.c" but moving ahead for ARM64 based SoC > support, there is a need of this PMU driver in driver/* folder. > > This driver uses existing DT binding information and there should > be no functionality change in the supported platforms. > > Signed-off-by: Amit Daniel Kachhap > Signed-off-by: Pankaj Dubey > --- > arch/arm/mach-exynos/Kconfig | 1 + > arch/arm/mach-exynos/Makefile | 4 +--- > drivers/soc/samsung/Kconfig | 4 ++++ > drivers/soc/samsung/Makefile | 4 ++++ > arch/arm/mach-exynos/pmu.c => drivers/soc/samsung/exynos-pmu.c | 0 > {arch/arm/mach-exynos => drivers/soc/samsung}/exynos-pmu.h | 0 > {arch/arm/mach-exynos => drivers/soc/samsung}/exynos3250-pmu.c | 0 > {arch/arm/mach-exynos => drivers/soc/samsung}/exynos4-pmu.c | 0 > {arch/arm/mach-exynos => drivers/soc/samsung}/exynos5250-pmu.c | 0 > {arch/arm/mach-exynos => drivers/soc/samsung}/exynos5420-pmu.c | 0 > 10 files changed, 10 insertions(+), 3 deletions(-) > rename arch/arm/mach-exynos/pmu.c => drivers/soc/samsung/exynos-pmu.c (100%) > rename {arch/arm/mach-exynos => drivers/soc/samsung}/exynos-pmu.h (100%) > rename {arch/arm/mach-exynos => drivers/soc/samsung}/exynos3250-pmu.c (100%) > rename {arch/arm/mach-exynos => drivers/soc/samsung}/exynos4-pmu.c (100%) > rename {arch/arm/mach-exynos => drivers/soc/samsung}/exynos5250-pmu.c (100%) > rename {arch/arm/mach-exynos => drivers/soc/samsung}/exynos5420-pmu.c (100%) > > diff --git a/arch/arm/mach-exynos/Kconfig b/arch/arm/mach-exynos/Kconfig > index 83c85f5..874cb38 100644 > --- a/arch/arm/mach-exynos/Kconfig > +++ b/arch/arm/mach-exynos/Kconfig > @@ -16,6 +16,7 @@ menuconfig ARCH_EXYNOS > select ARM_GIC > select COMMON_CLK_SAMSUNG > select EXYNOS_THERMAL > + select EXYNOS_PMU > select EXYNOS_SROM if PM > select HAVE_ARM_SCU if SMP > select HAVE_S3C2410_I2C if I2C > diff --git a/arch/arm/mach-exynos/Makefile b/arch/arm/mach-exynos/Makefile > index 2d58063..34d29df 100644 > --- a/arch/arm/mach-exynos/Makefile > +++ b/arch/arm/mach-exynos/Makefile > @@ -9,9 +9,7 @@ ccflags-$(CONFIG_ARCH_MULTIPLATFORM) += -I$(srctree)/$(src)/include -I$(srctree) > > # Core > > -obj-$(CONFIG_ARCH_EXYNOS) += exynos.o pmu.o exynos-smc.o firmware.o \ > - exynos3250-pmu.o exynos4-pmu.o \ > - exynos5250-pmu.o exynos5420-pmu.o > +obj-$(CONFIG_ARCH_EXYNOS) += exynos.o exynos-smc.o firmware.o > > obj-$(CONFIG_EXYNOS_CPU_SUSPEND) += pm.o sleep.o > obj-$(CONFIG_PM_SLEEP) += suspend.o > diff --git a/drivers/soc/samsung/Kconfig b/drivers/soc/samsung/Kconfig > index 2833b5b..f545d6c 100644 > --- a/drivers/soc/samsung/Kconfig > +++ b/drivers/soc/samsung/Kconfig > @@ -10,4 +10,8 @@ config EXYNOS_SROM > bool > depends on ARM && ARCH_EXYNOS && PM > > +config EXYNOS_PMU > + bool > + depends on ARCH_EXYNOS > + > endmenu > diff --git a/drivers/soc/samsung/Makefile b/drivers/soc/samsung/Makefile > index 9c554d5..26fb489 100644 > --- a/drivers/soc/samsung/Makefile > +++ b/drivers/soc/samsung/Makefile > @@ -1 +1,5 @@ > obj-$(CONFIG_EXYNOS_SROM) += exynos-srom.o > +ifdef CONFIG_ARM > +obj-$(CONFIG_EXYNOS_PMU) += exynos-pmu.o exynos3250-pmu.o exynos4-pmu.o \ > + exynos5250-pmu.o exynos5420-pmu.o > +endif > diff --git a/arch/arm/mach-exynos/pmu.c b/drivers/soc/samsung/exynos-pmu.c > similarity index 100% > rename from arch/arm/mach-exynos/pmu.c > rename to drivers/soc/samsung/exynos-pmu.c > diff --git a/arch/arm/mach-exynos/exynos-pmu.h b/drivers/soc/samsung/exynos-pmu.h 1. Please reorder the exynos_sys_powerdown_conf() to be after the statics. I am thinking also about adding EXPORT_SYMBOL... but maybe this would be over-thinking. 2. I think the proper location of everything is drivers/power/reset/. Although I don't have strong opinion. 3. Please cc linux-pm and arm-soc guys (Arnd, Olof, Kevin) on next iteration. Best regards, Krzysztof > similarity index 100% > rename from arch/arm/mach-exynos/exynos-pmu.h > rename to drivers/soc/samsung/exynos-pmu.h > diff --git a/arch/arm/mach-exynos/exynos3250-pmu.c b/drivers/soc/samsung/exynos3250-pmu.c > similarity index 100% > rename from arch/arm/mach-exynos/exynos3250-pmu.c > rename to drivers/soc/samsung/exynos3250-pmu.c > diff --git a/arch/arm/mach-exynos/exynos4-pmu.c b/drivers/soc/samsung/exynos4-pmu.c > similarity index 100% > rename from arch/arm/mach-exynos/exynos4-pmu.c > rename to drivers/soc/samsung/exynos4-pmu.c > diff --git a/arch/arm/mach-exynos/exynos5250-pmu.c b/drivers/soc/samsung/exynos5250-pmu.c > similarity index 100% > rename from arch/arm/mach-exynos/exynos5250-pmu.c > rename to drivers/soc/samsung/exynos5250-pmu.c > diff --git a/arch/arm/mach-exynos/exynos5420-pmu.c b/drivers/soc/samsung/exynos5420-pmu.c > similarity index 100% > rename from arch/arm/mach-exynos/exynos5420-pmu.c > rename to drivers/soc/samsung/exynos5420-pmu.c > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/