From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752464AbaEPAb7 (ORCPT ); Thu, 15 May 2014 20:31:59 -0400 Received: from v094114.home.net.pl ([79.96.170.134]:64141 "HELO v094114.home.net.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752323AbaEPAb4 (ORCPT ); Thu, 15 May 2014 20:31:56 -0400 From: "Rafael J. Wysocki" To: Alan Stern Cc: Linux PM list , ACPI Devel Maling List , Aaron Lu , Mika Westerberg , Linux Kernel Mailing List , Kevin Hilman , Ulf Hansson Subject: [PATCH 0/3] (was: Re: PM / sleep: Mechanism to avoid resuming runtime-suspended devices unnecessarily) Date: Fri, 16 May 2014 02:45:35 +0200 Message-ID: <1596386.YnYCCm2UQG@vostro.rjw.lan> User-Agent: KMail/4.11.5 (Linux/3.15.0-rc5+; KDE/4.11.5; x86_64; ; ) In-Reply-To: <1495375.YeObBhD5SE@vostro.rjw.lan> References: <1495375.YeObBhD5SE@vostro.rjw.lan> 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 On Thursday, May 15, 2014 01:13:02 PM Rafael J. Wysocki wrote: > On Wednesday, May 14, 2014 10:53:16 AM Alan Stern wrote: > > On Tue, 13 May 2014, Rafael J. Wysocki wrote: [cut] > > > > if (dev->power.direct_complete) { > > if (pm_runtime_status_suspended(dev)) { > > pm_runtime_disable(dev); > > if (dev->power.disable_depth == 1 > > && pm_runtime_status_suspended(dev)) > > goto Complete; > > pm_runtime_enable(dev); > > } > > dev->power.direct_complete = false; > > } > > That is a good idea, thanks! New patches follow. [1/3] is the core change with the above added. > > Also, now that we have finally settled on the appropriate API, there > > needs to ba a patch updating the PM documentation. > > Absolutely. I thought about updating the documentation in the same patch > (at least the comments in pm.h), but I guess a separate patch for files > under Documentation/ may be better. [2/3] is the corresponding documentation update (I hope I haven't overlooked anything important). [3/3] is a resend of the ACPI PM patch on top of the core change. Rafael