[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120818120138.GD21888@opensource.wolfsonmicro.com>
Date: Sat, 18 Aug 2012 13:01:38 +0100
From: Mark Brown <broonie@...nsource.wolfsonmicro.com>
To: Wolfram Sang <w.sang@...gutronix.de>
Cc: Laxman Dewangan <ldewangan@...dia.com>, khali@...ux-fr.org,
swarren@...dia.com, linux-i2c@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] i2c: tegra: Fix ifdefs for suspend mode
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:
> > 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...
Download attachment "signature.asc" of type "application/pgp-signature" (837 bytes)
Powered by blists - more mailing lists