From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lee Jones Subject: Re: [PATCH 02/12] drivers: mfd: Add support for Exynos PMU driver Date: Tue, 4 Nov 2014 08:24:02 +0000 Message-ID: <20141104082402.GE17577@x1> References: <1414986790-11940-1-git-send-email-amit.daniel@samsung.com> <1414986790-11940-3-git-send-email-amit.daniel@samsung.com> <20141103152604.GA10544@x1> <002601cff7de$0f8db7e0$2ea927a0$@samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Content-Disposition: inline In-Reply-To: <002601cff7de$0f8db7e0$2ea927a0$@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org To: Pankaj Dubey Cc: 'Amit Daniel Kachhap' , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-pm@vger.kernel.org, kgene.kim@samsung.com, 'Sangbeom Kim' , 'Samuel Ortiz' List-Id: linux-pm@vger.kernel.org On Tue, 04 Nov 2014, Pankaj Dubey wrote: > On Monday, November 03, 2014 8:56 PM, Lee Jones wrote, > > Subject: Re: [PATCH 02/12] drivers: mfd: Add support for Exynos PMU= driver > >=20 > > On Mon, 03 Nov 2014, Amit Daniel Kachhap wrote: > >=20 > > > From: Pankaj Dubey > > > > > > This patch moves Exynos PMU driver implementation from "arm/mach-= exynos" > > > to "drivers/mfd". This driver is mainly used for setting misc bit= s of > > > register from PMU IP of Exynos SoC which will be required to conf= igure > > > 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 DT based implementation of PMU driver= =2E > > > > > > This driver uses already existing DT binding information. > > > > > > CC: Sangbeom Kim > > > CC: Samuel Ortiz > > > CC: Lee Jones > > > Signed-off-by: Pankaj Dubey > > > Signed-off-by: Amit Daniel Kachhap > > > --- > > > arch/arm/mach-exynos/Kconfig | 1 + > > > arch/arm/mach-exynos/Makefile | 2 +- > > > drivers/mfd/Kconfig | 9 ++++++= +++ > > > drivers/mfd/Makefile | 1 + > > > .../mach-exynos/pmu.c =3D> drivers/mfd/exynos-pmu.c | 0 > > > 5 files changed, 12 insertions(+), 1 deletion(-) rename > > > arch/arm/mach-exynos/pmu.c =3D> drivers/mfd/exynos-pmu.c (100%) > >=20 > > I thought we spoke about this already [1]? What's changed? > >=20 > > [1] https://lkml.org/lkml/2014/4/29/193 > >=20 >=20 > Yes correct, we had discussion about this in above post. But at that = time I was not having enough points to > put forward for keeping Exynos PMU driver in MFD folder. There are no valid points for keeping PMU code in MFD. > At that point there was only one idea behind keeping Exynos PMU that = in future it will be reused for ARM64 > based SoC for PM related functionalities. > But in this series we have implemented Exynos Power Domain for Samsun= g's ARM64 based SoCs. >=20 > As far as I can see this will in following ways - >=20 > 1: Moving out PM domain specific code from mach-exynos and reuse of s= ame code for ARM64 based SoC also. > 2: Since PM domain relies on PMU registers and does not have its own = DT binding, MFD client and MFD device > is most suitable for making this kind of platform drivers. MFD can be used to register the device, but the driver must not live in MFD. Please relocate it into drivers/power. --=20 Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org =E2=94=82 Open source software for ARM SoCs =46ollow Linaro: Facebook | Twitter | Blog