From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Rafael J. Wysocki" Subject: Re: Runtime PM: Calling Device runtime PM callbacks? Date: Tue, 15 Dec 2009 22:04:03 +0100 Message-ID: <200912152204.03248.rjw@sisk.pl> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-pm-bounces@lists.linux-foundation.org Errors-To: linux-pm-bounces@lists.linux-foundation.org To: Alan Stern Cc: "linux-pm@lists.linux-foundation.org" List-Id: linux-pm@vger.kernel.org On Tuesday 15 December 2009, Alan Stern wrote: > On Tue, 15 Dec 2009, Rafael J. Wysocki wrote: > > > In fact, I'm not very comfortable with the current possibility to call DPM > > callbacks of two or three kinds in a row for the same device, because that > > means very close connection between the bus type and device type or device > > class (or all three of them). Nobody does that, as far as I can tell, and I > > guess nobody will. > > How certain are you? Do you want to add a WARN_ON to the PM core in > case such a thing turns up? That might be a good idea, at least for linux-next testing. > > Now, if we agree that only one callback will be called for given device > > (either bus type, or device type, or device class), the code may be simpler > > and there won't be an issue with the ordering in _idle. > > That would be perfectly fine with me. OK Rafael