Received: by 10.192.165.148 with SMTP id m20csp5263120imm; Wed, 9 May 2018 02:03:19 -0700 (PDT) X-Google-Smtp-Source: AB8JxZowYZ/8wS9MKsizOauveai6Gx5ae1lQu+V5VzRaNosJwLLmQfMR3H85t0JNfVhT7zfXG+5Z X-Received: by 2002:a17:902:8c91:: with SMTP id t17-v6mr45386475plo.182.1525856599571; Wed, 09 May 2018 02:03:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525856599; cv=none; d=google.com; s=arc-20160816; b=figqE8PlCmdEXHxsGs+PsUlCRNE6GokKZYbJnLTq1bp1guJv+sHJBd/M8anoHR3f0w nVrmiY9ir3R/I28XpwZJdEG55PQvMi67f85IYTteSM20Hu0gm4MwlGHcCWszjcFEMJ0z o0Dxt676VqvmEnodSr5l3GKKI4bEk2Cp79/KLCYMr1LzXvFJbGH+atDJtGnWtI0na2EG 4meZAn3mQF8v0K0hAkecQNxWDhlfJp9WQDKzW15aazLuFsJczWkrbVfLgmfiOPILD/JA 1FdkUtx8lLbnClaGbNZ2/ZQB6gykzkCv6rdE3wZRjVJBJ6pegguwFn0RvPme4EEi+3ww FJow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=UwVy0MutqFqURxzzNhqneHyJeuwwvK8R2JJh38wB4RQ=; b=brGMBVbvK0IOA5GOMEQ3Oq6ctz6olEQta4P9fVcFNf1DajPvz8u9QXweCVEZGgzPH5 arDfkk6iMQ1/DeDgn/sTk85ikv6Ya5TwRiEFz/Sy8FKZLwOb1NEOhwTwWrtF1SCwxV3w a+Z2p5Q4ANJj/bLzwE8E7cj10w1tWkJlereyt/9qnjVQCkTpELqEDztar9UBvim8MfW4 TT+o06U4oThYusBu7MGh+ROZKcPCy1NR6aIYdOCkutsTN72zsWGLg3igYvY7Bmx7GWw1 3rHTkW8+tNevnEypJekm/LHhETuuvDUXCJbFGixRac0SfFxluJ0CZHZ02oLeYBgcZFjG A7Uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@armlinux.org.uk header.s=pandora-2014 header.b=FA2rq8nl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e203si26717995pfh.86.2018.05.09.02.03.05; Wed, 09 May 2018 02:03:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@armlinux.org.uk header.s=pandora-2014 header.b=FA2rq8nl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934553AbeEIJCa (ORCPT + 99 others); Wed, 9 May 2018 05:02:30 -0400 Received: from pandora.armlinux.org.uk ([78.32.30.218]:37792 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934007AbeEIJC1 (ORCPT ); Wed, 9 May 2018 05:02:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2014; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=UwVy0MutqFqURxzzNhqneHyJeuwwvK8R2JJh38wB4RQ=; b=FA2rq8nld/cNVsN+cUogqwhmy lGVkJWwEvtgjNGcmUmVPIbBJi9VbviuMYCjXOmW4Yskd+SckR+HqhSYZI/yECEoKdWqPWjAdmtj3M CoSYTKucgED6M6NOrYbm0wM9Igted7cxLK6vryas0qp9uCdIBd/2WeNTZun1k2eH8sOLE=; Received: from n2100.armlinux.org.uk ([2002:4e20:1eda:1:214:fdff:fe10:4f86]:45834) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.90_1) (envelope-from ) id 1fGKzK-0003XQ-H8; Wed, 09 May 2018 10:02:18 +0100 Received: from linux by n2100.armlinux.org.uk with local (Exim 4.90_1) (envelope-from ) id 1fGKzH-0002Uy-Os; Wed, 09 May 2018 10:02:15 +0100 Date: Wed, 9 May 2018 10:02:13 +0100 From: Russell King - ARM Linux To: Oleksij Rempel Cc: Mark Rutland , devicetree@vger.kernel.org, Michael Turquette , Stephen Boyd , linux-kernel@vger.kernel.org, Liam Girdwood , Rob Herring , Mark Brown , kernel@pengutronix.de, Fabio Estevam , Andrew Morton , Leonard Crestez , Shawn Guo , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v6 2/6] ARM: imx6: register pm_power_off handler if "fsl,pmic-stby-poweroff" is set Message-ID: <20180509090213.GQ16141@n2100.armlinux.org.uk> References: <20180305102524.5905-1-o.rempel@pengutronix.de> <20180305102524.5905-3-o.rempel@pengutronix.de> <20180508124033.GL16141@n2100.armlinux.org.uk> <20180509050628.csbusplowpvmmiwa@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180509050628.csbusplowpvmmiwa@pengutronix.de> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 09, 2018 at 07:06:28AM +0200, Oleksij Rempel wrote: > On Tue, May 08, 2018 at 01:40:33PM +0100, Russell King - ARM Linux wrote: > > On Mon, Mar 05, 2018 at 11:25:19AM +0100, Oleksij Rempel wrote: > > > One of the Freescale recommended sequences for power off with external > > > PMIC is the following: > > > ... > > > 3. SoC is programming PMIC for power off when standby is asserted. > > > 4. In CCM STOP mode, Standby is asserted, PMIC gates SoC supplies. > > > > > > See: > > > http://www.nxp.com/assets/documents/data/en/reference-manuals/IMX6DQRM.pdf > > > page 5083 > > > > > > This patch implements step 4. of this sequence. > > > > > > Signed-off-by: Oleksij Rempel > > > --- > > > arch/arm/mach-imx/pm-imx6.c | 25 +++++++++++++++++++++++++ > > > 1 file changed, 25 insertions(+) > > > > > > diff --git a/arch/arm/mach-imx/pm-imx6.c b/arch/arm/mach-imx/pm-imx6.c > > > index ecdf071653d4..24689260a2a5 100644 > > > --- a/arch/arm/mach-imx/pm-imx6.c > > > +++ b/arch/arm/mach-imx/pm-imx6.c > > > @@ -604,6 +604,28 @@ static void __init imx6_pm_common_init(const struct imx6_pm_socdata > > > IMX6Q_GPR1_GINT); > > > } > > > > > > +static void imx6_pm_stby_poweroff(void) > > > +{ > > > + imx6_set_lpm(STOP_POWER_OFF); > > > + cpu_suspend(0, imx6q_suspend_finish); > > > > Do you actually need to save the processor state etc here - the request > > is after all to power down the system and not to suspend. Would calling > > imx6q_suspend_finish() directly work (and hence simplify the code) ? > > yes you right. This will work as well. > I'll send changed version after Rafaels feedback for kernel/reboot.c > part. > Russell, can I expect your Signed-off-by for changed patch? No, please read Documentation/process/submitting-patches.rst section 12. s-o-b does not apply in this case. -- RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 8.8Mbps down 630kbps up According to speedtest.net: 8.21Mbps down 510kbps up