Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932837AbbESOMD (ORCPT ); Tue, 19 May 2015 10:12:03 -0400 Received: from mail-wi0-f179.google.com ([209.85.212.179]:33394 "EHLO mail-wi0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752989AbbESOMA (ORCPT ); Tue, 19 May 2015 10:12:00 -0400 From: Tomeu Vizoso To: linux-pm@vger.kernel.org Cc: Laurent Pinchart , Dmitry Torokhov , Alan Stern , Tomeu Vizoso , Greg Kroah-Hartman , Kevin Hilman , Krzysztof Kozlowski , Len Brown , linux-kernel@vger.kernel.org, Pavel Machek , "Rafael J. Wysocki" , Russell King , Ulf Hansson Subject: [PATCH v3 0/2] PM: direct_complete_default and pm_runtime_enable_recursive Date: Tue, 19 May 2015 16:11:14 +0200 Message-Id: <1432044679-10256-1-git-send-email-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.4.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1246 Lines: 37 Hi, this is v3 of a series that adds API to make it more convenient for drivers to opt into remaining runtime suspended when the system goes to sleep. in this version I have replaced force_direct_complete with direct_complete_default as suggested by Rafael and thus have had to add a pm_runtime_enable_recursive() function call to make sure that all descendants have runtime PM enabled. Inheritance of the direct_complete_default flag has to be done in device_pm_add instead of in pm_runtime_init because sometimes the parent won't have been set yet by then. Thanks, Tomeu Tomeu Vizoso (2): PM / sleep: Add power.direct_complete_default flag PM / Runtime: Add pm_runtime_enable_recursive Documentation/power/runtime_pm.txt | 8 +++++++- drivers/base/power/main.c | 5 +++++ drivers/base/power/runtime.c | 15 +++++++++++++++ include/linux/pm.h | 1 + include/linux/pm_runtime.h | 1 + 5 files changed, 29 insertions(+), 1 deletion(-) -- 2.4.1 -- 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/