Thread (8 messages) 8 messages, 3 authors, 2015-07-30
STALE3997d

[PATCH v3 1/1] Serial: imx: add dev_pm_ops to support suspend to ram/disk

From: Shenwei Wang <hidden>
Date: 2015-07-29 21:54:58
Also in: linux-serial

-----Original Message-----
From: Fabio Estevam [mailto:festevam at gmail.com]
Sent: 2015?7?29? 16:46
To: Wang Shenwei-B38339
Cc: Greg Kroah-Hartman; linux-arm-kernel at lists.infradead.org;
linux-serial at vger.kernel.org
Subject: Re: [PATCH v3 1/1] Serial: imx: add dev_pm_ops to support suspend to
ram/disk

On Wed, Jul 29, 2015 at 6:41 PM, Shenwei Wang [off-list ref]
wrote:
quoted
quoted
clk_enable() may fail, so you should check its return value.
The check seems a little superfluous because the failure condition for
clk_enable is (clk == NULL || IS_ERR(clk)) Once this function is
called which means the initialization of the driver is successful.
Not superfluos. You can't assume that clk_enable() will always be successful.
Better check its return value.
I am very interesting to know if you could provide an example condition that may cause 
clk_enable failed in this callback function?

Regards,
Shenwei
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help