Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756009Ab0A2PBM (ORCPT ); Fri, 29 Jan 2010 10:01:12 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753440Ab0A2PBK (ORCPT ); Fri, 29 Jan 2010 10:01:10 -0500 Received: from ogre.sisk.pl ([217.79.144.158]:43995 "EHLO ogre.sisk.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754193Ab0A2PBI (ORCPT ); Fri, 29 Jan 2010 10:01:08 -0500 From: "Rafael J. Wysocki" To: Alan Stern Subject: Re: [PATCH 1/2] PM / Runtime: Clean up pm_runtime_disable() Date: Fri, 29 Jan 2010 16:01:37 +0100 User-Agent: KMail/1.12.4 (Linux/2.6.33-rc5-rjw; KDE/4.3.5; x86_64; ; ) Cc: pm list , LKML References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201001291601.37812.rjw@sisk.pl> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1579 Lines: 38 On Friday 29 January 2010, Alan Stern wrote: > On Thu, 28 Jan 2010, Rafael J. Wysocki wrote: > > > > > - * If @check_resume is set and there's a resume request pending when > > > > - * __pm_runtime_disable() is called and power.disable_depth is zero, the > > > > - * function will wake up the device before disabling its run-time PM. > > > > */ > > > > -void __pm_runtime_disable(struct device *dev, bool check_resume) > > > > +void pm_runtime_disable(struct device *dev) > > > > { > > > > > > Why did you decide to remove the check_resume argument? That decision > > > should be explained in the patch description. > > > > Well, I thought the "which is not necessary any more" would be a sufficient > > explanation ... > > But why is it not necessary now, Well, all of the existing callers use only one value of it, which is 'false' (perhaps I should write that in the changelog). > given that apparently it was necessary before? What has changed to make > it unnecessary? It was used in the system suspend code path in main.c (in dpm_prepare()) IIRC, but it was replaced by the current code. I don't really think it's useful to try to recall why it was used at one point. It's not used now and I don't have a usage case for it. If no one else knows it will be necessary, removing it is the right thing to do. Rafael -- 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/