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: 4939571 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 141B19F2EC for ; Fri, 19 Sep 2014 18:30:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C06B120204 for ; Fri, 19 Sep 2014 18:30:20 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DE90A20200 for ; Fri, 19 Sep 2014 18:30:19 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XV2v0-0008HC-BB; Fri, 19 Sep 2014 18:28:30 +0000 Received: from mail-pa0-f43.google.com ([209.85.220.43]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XV2um-0007xF-Ep for linux-arm-kernel@lists.infradead.org; Fri, 19 Sep 2014 18:28:16 +0000 Received: by mail-pa0-f43.google.com with SMTP id kx10so605710pab.2 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=Z6xzBZPS0sa7Z3RgxGWQRA8xU4ij9PVSClNgpfiewcLPOlHWk63DG1LJdf2FzwqzcD fBA6RN5csZ7/LK2Nu/iFPLBqbj1G7k6P1C8M93fHSS69yr4urXto9LVqwKBTcNkHTyLG 9h8pgkg77z/l4ni2kPZLzTqZYLm1SHg4h3R1BHEceKbf2ICY6/XzEI6fPMh5w41u5AbM eRDuzmM4y4JIDrYYpNadURr15VHq/IERZDfwQ1O9bDB0Hpln/FhNJ5xI7QZAy6sG3cTG ILXMAYAfYpmh1cW9R11uZJhdY0urE75DAT201scp5tJTxBh/F43K7yujoAd9s2/AzZum NVQQ== X-Gm-Message-State: ALoCoQng71ChNTJIhPCIi7z4pnP8PoQreS3dQAM9VpRaZ6dwSnyY1U76UIIG8qJQQR9AVz2d/suD 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140919_112816_532840_10A03CA1 X-CRM114-Status: GOOD ( 11.54 ) X-Spam-Score: -1.0 (-) Cc: devicetree@vger.kernel.org, Ulf Hansson , Kevin Hilman , Russell King , Philipp Zabel , Geert Uytterhoeven , Wolfram Sang , Stephen Boyd , Linus Walleij , Daniel Lezcano , Magnus Damm , Tomasz Figa , Chris Ball , linux-acpi@vger.kernel.org, Simon Horman , Alan Stern , Mark Brown , Ben Dooks , Kukjin Kim , Dmitry Torokhov , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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); }; /*