From: "Rafael J. Wysocki" Subject: Re: [PATCH] PM / Sleep: Fall back to subsystem level PM callbacks for PM domains Date: Wed, 30 Apr 2014 00:52:17 +0200 Message-ID: <1679843.u9z8cZFExt@vostro.rjw.lan> References: <1398422695-2295-1-git-send-email-ulf.hansson@linaro.org> <1753685.C73DLtyD2t@vostro.rjw.lan> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7Bit Return-path: Received: from v094114.home.net.pl ([79.96.170.134]:55151 "HELO v094114.home.net.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S965422AbaD2Wfs (ORCPT ); Tue, 29 Apr 2014 18:35:48 -0400 In-Reply-To: <1753685.C73DLtyD2t@vostro.rjw.lan> Sender: linux-pm-owner@vger.kernel.org List-Id: linux-pm@vger.kernel.org To: Ulf Hansson Cc: Len Brown , Pavel Machek , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Kevin Hilman , Alan Stern , Greg Kroah-Hartman , Daniel Lezcano , Tomasz Figa On Wednesday, April 30, 2014 12:47:28 AM Rafael J. Wysocki wrote: > On Friday, April 25, 2014 12:44:55 PM Ulf Hansson wrote: > > Previously once the PM core found a PM domain pointer for a device, > > but which didn't have a valid PM callback, it falled back to try the > > driver's PM callback. > > > > In this scenario, change the behavior of the PM core to try out the > > other subsystem level PM callbacks, before it moves on to the driver. > > > > This gives provision for PM domains to easier re-use subsystem level > > code to handle the needed operations. > > > > Signed-off-by: Ulf Hansson > > Are you sure this is not going to break the existing PM domains? And even if it isn't, the idea behind PM domains was to provide a mechanism to bypass the bus types' (etc) PM callbacks, so I'm not liking this patch at all. Thanks! -- I speak only for myself. Rafael J. Wysocki, Intel Open Source Technology Center.