Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752260AbbESXOJ (ORCPT ); Tue, 19 May 2015 19:14:09 -0400 Received: from v094114.home.net.pl ([79.96.170.134]:56435 "HELO v094114.home.net.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1751714AbbESXOF (ORCPT ); Tue, 19 May 2015 19:14:05 -0400 From: "Rafael J. Wysocki" To: Alan Stern Cc: Tomeu Vizoso , linux-pm@vger.kernel.org, Laurent Pinchart , Dmitry Torokhov , Len Brown , Pavel Machek , Greg Kroah-Hartman , Ulf Hansson , Kevin Hilman , Russell King , Krzysztof Kozlowski , linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 2/2] PM / Runtime: Add pm_runtime_enable_recursive Date: Wed, 20 May 2015 01:39:25 +0200 Message-ID: <26522847.rzj8GpQKux@vostro.rjw.lan> User-Agent: KMail/4.11.5 (Linux/4.0.0+; KDE/4.11.5; x86_64; ; ) In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1126 Lines: 29 On Tuesday, May 19, 2015 01:49:15 PM Alan Stern wrote: > On Tue, 19 May 2015, Tomeu Vizoso wrote: > > > This function makes less cumbersome to enable runtime PM in a device and > > its descendants. > > > > Signed-off-by: Tomeu Vizoso > > I don't see the point of this. In the scenario you have in mind, are > the device and all its descendants registered by the same > subsystem/driver? If they are, can't the subsystem/driver code enable > runtime PM for each of them when they are registered, by adding a > single call in the right spot? > > If they don't all belong to the same subsystem/driver, who is going to > call your pm_runtime_enable_recursive routine? No single caller will > have the right to enable runtime PM for all these devices. Agreed. -- I speak only for myself. Rafael J. Wysocki, Intel Open Source Technology Center. -- 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/