Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752621Ab1BHJXN (ORCPT ); Tue, 8 Feb 2011 04:23:13 -0500 Received: from ogre.sisk.pl ([217.79.144.158]:52675 "EHLO ogre.sisk.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751253Ab1BHJXK (ORCPT ); Tue, 8 Feb 2011 04:23:10 -0500 From: "Rafael J. Wysocki" To: Dmitry Torokhov Subject: Re: [PATCH] PM: Hide CONFIG_PM from users Date: Tue, 8 Feb 2011 10:23:00 +0100 User-Agent: KMail/1.13.5 (Linux/2.6.38-rc3+; KDE/4.4.4; x86_64; ; ) Cc: Mark Brown , Len Brown , Alan Stern , linux-pm@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Andrew Morton , linux-embedded@vger.kernel.org, Ingo Molnar References: <1297081335-13631-1-git-send-email-broonie@opensource.wolfsonmicro.com> <201102080005.40448.rjw@sisk.pl> <20110208005053.GB24804@core.coreip.homeip.net> In-Reply-To: <20110208005053.GB24804@core.coreip.homeip.net> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201102081023.00986.rjw@sisk.pl> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2413 Lines: 44 On Tuesday, February 08, 2011, Dmitry Torokhov wrote: > On Tue, Feb 08, 2011 at 12:05:40AM +0100, Rafael J. Wysocki wrote: > > On Monday, February 07, 2011, Dmitry Torokhov wrote: > > > On Mon, Feb 07, 2011 at 11:00:03PM +0100, Rafael J. Wysocki wrote: > > > > On Monday, February 07, 2011, Dmitry Torokhov wrote: > > > > > On Mon, Feb 07, 2011 at 10:15:59PM +0100, Rafael J. Wysocki wrote: > > > > > > On Monday, February 07, 2011, Mark Brown wrote: > > > > > > > > > > > > > > Yeah, but some people seem very keen on removing the pointers to the PM > > > > > > > ops entirely when CONFIG_PM is disabled which means that you end up with > > > > > > > varying idioms for what you do with the PM ops as stuff gets ifdefed > > > > > > > out. Then again I'm not sure anything would make those people any > > > > > > > happier. > > > > > > > > > > > > I really think we should do things that makes sense rather that worry about > > > > > > who's going to like or dislike it (except for Linus maybe, but he tends to like > > > > > > things that make sense anyway). At this point I think the change I suggested > > > > > > makes sense, because it (a) simplifies things and (b) follows the quite common > > > > > > practice which is to make PM callbacks depend on CONFIG_PM. > > > > > > > > > > Many people make these callback dependent on PM not because it makes > > > > > much sense but because it is possible to do so. However, aside of > > > > > randconfig compile testing, nobody really tests drivers that implement > > > > > PM in the !CONFIG_PM setting. > > > > > > > > That I can agree with, but I'm not sure whether it is an argument against > > > > the patch I've just posted or for it? > > > > > > More of an observation for your (b) justification. I'd probably force > > > CONFIG_PM to always 'y'w while we weeding references to it from > > > drivers... > > > > We simply can't force CONFIG_PM to 'y', because some platforms want it to be 'n'. > > > > Again, want or need? It would be nice to know answer to this question. I _think_ the answer is "want", which doesn't change a lot, because I'm not going to convince people to stop wanting things. :-) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/