Thread (4 messages) 4 messages, 3 authors, 2012-08-18

Re: [PATCH] i2c: tegra: Fix ifdefs for suspend mode

From: Mark Brown <hidden>
Date: 2012-08-18 12:01:45
Also in: lkml

On Sat, Aug 18, 2012 at 09:07:32AM +0200, Wolfram Sang wrote:
On Mon, Jul 30, 2012 at 07:03:07PM +0530, Laxman Dewangan wrote:
quoted
CONFIG_PM covers runtime only PM.
I am a bit confused by this description. CONFIG_PM_RUNTIME covers
runtime PM, no?
The issue is that CONFIG_PM doesn't actually enable any of the PM
callbacks, it only allows you to enable CONFIG_PM_SLEEP and
CONFIG_PM_RUNTIME.  This means that if you use CONFIG_PM to protect your
system sleep callbacks they may end up unreferenced if only runtime PM
is enabled.

Personally I'd rather just uncondtionally enable PM rather than faff
around with all these ifdefs...

Attachments

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