From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752843AbbIJJ7e (ORCPT ); Thu, 10 Sep 2015 05:59:34 -0400 Received: from foss.arm.com ([217.140.101.70]:33228 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750786AbbIJJ7c (ORCPT ); Thu, 10 Sep 2015 05:59:32 -0400 Date: Thu, 10 Sep 2015 10:59:20 +0100 From: Mark Rutland To: Dongsheng Wang Cc: "shawnguo@kernel.org" , Catalin Marinas , "alison.wang@freescale.com" , "chenhui.zhao@freescale.com" , "jason.jin@freescale.com" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] arm/ls1021a: Add Sleep feature for ls1021 Message-ID: <20150910095920.GB29293@leverpostej> References: <1441877796-32232-1-git-send-email-dongsheng.wang@freescale.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1441877796-32232-1-git-send-email-dongsheng.wang@freescale.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 10, 2015 at 10:36:36AM +0100, Dongsheng Wang wrote: > From: Wang Dongsheng > > Based on PSCI framework, add system STANDBY implement for ls1021 platform. > > Signed-off-by: Chenhui Zhao > Signed-off-by: Wang Dongsheng > > diff --git a/arch/arm/mach-imx/Makefile b/arch/arm/mach-imx/Makefile > index fb689d8..d7a2d1d 100644 > --- a/arch/arm/mach-imx/Makefile > +++ b/arch/arm/mach-imx/Makefile > @@ -90,6 +90,7 @@ ifeq ($(CONFIG_SUSPEND),y) > AFLAGS_suspend-imx6.o :=-Wa,-march=armv7-a > obj-$(CONFIG_SOC_IMX6) += suspend-imx6.o > obj-$(CONFIG_SOC_IMX53) += suspend-imx53.o > +obj-$(CONFIG_SOC_LS1021A) += pm-ls1.o > endif > obj-$(CONFIG_SOC_IMX6) += pm-imx6.o > > diff --git a/arch/arm/mach-imx/pm-ls1.c b/arch/arm/mach-imx/pm-ls1.c > new file mode 100644 > index 0000000..f80b24d > --- /dev/null > +++ b/arch/arm/mach-imx/pm-ls1.c > @@ -0,0 +1,222 @@ > +/* > + * Support Power Management Control for LS1 > + * > + * Copyright 2015 Freescale Semiconductor Inc. > + * > + * This program is free software; you can redistribute it and/or modify it > + * under the terms of the GNU General Public License as published by the > + * Free Software Foundation; either version 2 of the License, or (at your > + * option) any later version. > + */ > + > +#include > +#include > +#include > +#include > +#include > +#include > + > +#include > + > +#include > +#include NAK. No new platform code should be calling the PSCI functions directly; you should not need to include these files in platform code. Thanks, Mark.