[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <B256D81BAE5131468A838E5D7A243641BFD35CD3@penmbx01>
Date: Tue, 27 Jan 2015 04:44:59 +0000
From: "Yang, Wenyou" <Wenyou.Yang@...el.com>
To: Sylvain Rochet <sylvain.rochet@...secur.com>
CC: "Ferre, Nicolas" <Nicolas.FERRE@...el.com>,
"linux@....linux.org.uk" <linux@....linux.org.uk>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"alexandre.belloni@...e-electrons.com"
<alexandre.belloni@...e-electrons.com>,
"peda@...ntia.se" <peda@...ntia.se>
Subject: RE: [PATCH v2 07/12] pm: at91: the standby mode uses the same sram
function as the suspend to memory mode
Hi Sylvain,
> -----Original Message-----
> From: Sylvain Rochet [mailto:sylvain.rochet@...secur.com]
> Sent: Monday, January 26, 2015 6:10 PM
> To: Yang, Wenyou
> Cc: Ferre, Nicolas; linux@....linux.org.uk; linux-arm-kernel@...ts.infradead.org;
> linux-kernel@...r.kernel.org; alexandre.belloni@...e-electrons.com;
> peda@...ntia.se
> Subject: Re: [PATCH v2 07/12] pm: at91: the standby mode uses the same sram
> function as the suspend to memory mode
>
> Hello Wenyou,
>
>
> On Mon, Jan 26, 2015 at 05:42:11PM +0800, Wenyou Yang wrote:
> > +static int at91_pm_verify_clocks(suspend_state_t state)
> > {
> > unsigned long scsr;
> > int i;
> >
> > + /* For PM_SUSPEND_STANDBY, skip verifying the clock */
> > + if (state == PM_SUSPEND_STANDBY)
> > + return 1;
> > +
>
> In my opinion we should use the select() already in place in
> at91_pm_enter() to do that:
Accepted. Thanks
>
> > static int at91_pm_enter(suspend_state_t state) {
> > at91_pinctrl_gpio_suspend();
> >
> > switch (state) {
> (...)
> > + case PM_SUSPEND_MEM:
>
> /*
> * Ensure that clocks are in a valid state.
> */
> if (!at91_pm_verify_clocks())
> goto error;
> /* FALLTHROUGH */
>
> > + case PM_SUSPEND_STANDBY:
> > /*
> > - * Suspend-to-RAM is like STANDBY plus slow clock mode, so
>
>
> Sylvain
Best Regards,
Wenyou Yang
Powered by blists - more mailing lists