[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <B256D81BAE5131468A838E5D7A243641BF589DDC@penmbx02.corp.atmel.com>
Date: Thu, 16 Oct 2014 08:09:49 +0000
From: "Yang, Wenyou" <Wenyou.Yang@...el.com>
To: Mark Brown <broonie@...nel.org>
CC: "linux-spi@...r.kernel.org" <linux-spi@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"Ferre, Nicolas" <Nicolas.FERRE@...el.com>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>
Subject: RE: [PATCH] spi/atmel: add support for runtime PM
Hi Mark,
> -----Original Message-----
> From: Mark Brown [mailto:broonie@...nel.org]
> Sent: Thursday, October 16, 2014 3:30 PM
> To: Yang, Wenyou
> Cc: linux-spi@...r.kernel.org; linux-kernel@...r.kernel.org; Ferre, Nicolas; linux-
> arm-kernel@...ts.infradead.org
> Subject: Re: [PATCH] spi/atmel: add support for runtime PM
>
> On Thu, Oct 16, 2014 at 09:49:20AM +0800, Wenyou Yang wrote:
>
> > +static int atmel_spi_runtime_resume(struct device *dev) {
> > + struct spi_master *master = dev_get_drvdata(dev);
> > + struct atmel_spi *as = spi_master_get_devdata(master);
> > +
> > + pinctrl_pm_select_default_state(dev);
> > + clk_prepare_enable(as->clk);
> > +
>
> This looks mostly good but you should check the return value of
> clk_prepare_enable() - it can fail.
Thanks a lot, I will add it.
Best Regards,
Wenyou Yang
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists