From mboxrd@z Thu Jan 1 00:00:00 1970 From: gregory.clement@free-electrons.com (Gregory CLEMENT) Date: Tue, 04 Nov 2014 11:00:46 +0100 Subject: [PATCH 10/17] ARM: mvebu: implement suspend/resume support for Armada XP In-Reply-To: <1414151970-6626-11-git-send-email-thomas.petazzoni@free-electrons.com> References: <1414151970-6626-1-git-send-email-thomas.petazzoni@free-electrons.com> <1414151970-6626-11-git-send-email-thomas.petazzoni@free-electrons.com> Message-ID: <5458A3CE.70900@free-electrons.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Hi Thomas, [...] > +static int mvebu_pm_enter(suspend_state_t state) > +{ > + if (state != PM_SUSPEND_MEM) > + return -EINVAL; > + > + cpu_pm_enter(); > + cpu_cluster_pm_enter(); Why do you use this function? It notifies the listeners with CPU_CLUSTER_PM_ENTER but currently only omap2 and the gic are waiting for it. Do you already plan to be compatible with the cortex A9 based mvebu SoC? By the way the gic doesn't use the suspend and resume operation from syscore_ops but the notification. Is there any particular reason for using syscore_ops in the irq-armada-370-xp driver? Thanks, Gregory -- Gregory Clement, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gregory CLEMENT Subject: Re: [PATCH 10/17] ARM: mvebu: implement suspend/resume support for Armada XP Date: Tue, 04 Nov 2014 11:00:46 +0100 Message-ID: <5458A3CE.70900@free-electrons.com> References: <1414151970-6626-1-git-send-email-thomas.petazzoni@free-electrons.com> <1414151970-6626-11-git-send-email-thomas.petazzoni@free-electrons.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: In-Reply-To: <1414151970-6626-11-git-send-email-thomas.petazzoni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Thomas Petazzoni Cc: Jason Cooper , Andrew Lunn , Sebastian Hesselbarth , linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, Tawfik Bayouk , Nadav Haklai , Lior Amsalem , Ezequiel Garcia , devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: devicetree@vger.kernel.org Hi Thomas, [...] > +static int mvebu_pm_enter(suspend_state_t state) > +{ > + if (state != PM_SUSPEND_MEM) > + return -EINVAL; > + > + cpu_pm_enter(); > + cpu_cluster_pm_enter(); Why do you use this function? It notifies the listeners with CPU_CLUSTER_PM_ENTER but currently only omap2 and the gic are waiting for it. Do you already plan to be compatible with the cortex A9 based mvebu SoC? By the way the gic doesn't use the suspend and resume operation from syscore_ops but the notification. Is there any particular reason for using syscore_ops in the irq-armada-370-xp driver? Thanks, Gregory -- Gregory Clement, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html