From patchwork Fri Sep 19 18:27:34 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 4939311 Return-Path: X-Original-To: patchwork-linux-acpi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 1BB5BBEEA5 for ; Fri, 19 Sep 2014 18:28:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 522582020E for ; Fri, 19 Sep 2014 18:28:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 86BD020200 for ; Fri, 19 Sep 2014 18:27:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757700AbaISS15 (ORCPT ); Fri, 19 Sep 2014 14:27:57 -0400 Received: from mail-pa0-f43.google.com ([209.85.220.43]:63127 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757658AbaISS1z (ORCPT ); Fri, 19 Sep 2014 14:27:55 -0400 Received: by mail-pa0-f43.google.com with SMTP id kx10so603873pab.30 for ; Fri, 19 Sep 2014 11:27:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=93HXmYEueBLspDejCBAcIVJtHMrRTM3v8Bhx0IMvuzw=; b=UItEB3AjAjPtUiWQb+w3Pgx+yNtIseeEeDtxm/8HR20Yuzo2DXmnq6g8Anjc6LKuwk vvck+RcGXGsbOuo0xjwuapPknZDuQAJh9GTnO5cm8NINYTACWvGCi2WJcSSeYzp9PA8d eagvgRWUSgcXq9difcast0/IH6wlOR3vqnZ6cIUKCrS3uStG2jMPKtmh/dfWR/37xEIf ESi/vXTvJcHX81jt6/9+nm23F3XmFrbDpGdHqK26xtOvllpNASdl3+Z2/Nr1btusd+HI ugVeUmZbIlJejKMkTXvxzUrUOcdDLwwOfg3F5t62c5JFo8y5bWDu2T4kV0byAvmrrdlZ GG5Q== X-Gm-Message-State: ALoCoQn4+KxInSZEfwfUbNKCj+jXjZOU4IKYnYHuqBPwflQuotN3WQVi3ZvWB8f2eEl8XpJ/OKB9 X-Received: by 10.70.1.111 with SMTP id 15mr3729504pdl.28.1411151275494; Fri, 19 Sep 2014 11:27:55 -0700 (PDT) Received: from localhost.localdomain ([38.126.120.10]) by mx.google.com with ESMTPSA id ki1sm2495071pdb.59.2014.09.19.11.27.53 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 19 Sep 2014 11:27:54 -0700 (PDT) From: Ulf Hansson To: "Rafael J. Wysocki" , Len Brown , Pavel Machek , Greg Kroah-Hartman , linux-pm@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-acpi@vger.kernel.org, Geert Uytterhoeven , Kevin Hilman , Alan Stern , Daniel Lezcano , Tomasz Figa , devicetree@vger.kernel.org, Linus Walleij , Simon Horman , Magnus Damm , Ben Dooks , Kukjin Kim , Stephen Boyd , Philipp Zabel , Mark Brown , Wolfram Sang , Chris Ball , Russell King , Dmitry Torokhov , Ulf Hansson Subject: [PATCH v5 01/11] PM / Domains: Add a detach callback to the struct dev_pm_domain Date: Fri, 19 Sep 2014 20:27:34 +0200 Message-Id: <1411151264-16245-2-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1411151264-16245-1-git-send-email-ulf.hansson@linaro.org> References: <1411151264-16245-1-git-send-email-ulf.hansson@linaro.org> Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The intent of this callback is to simplify detachment of devices from their PM domains. Further patches will show the benefit. Signed-off-by: Ulf Hansson --- include/linux/pm.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/pm.h b/include/linux/pm.h index 72c0fe0..ef4e16f 100644 --- a/include/linux/pm.h +++ b/include/linux/pm.h @@ -619,6 +619,7 @@ extern int dev_pm_put_subsys_data(struct device *dev); */ struct dev_pm_domain { struct dev_pm_ops ops; + void (*detach)(struct device *, bool); }; /*