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: 37646 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3F59420293 for ; Fri, 19 Sep 2014 18:27:59 +0000 (UTC) Received: by mail-lb0-f198.google.com with SMTP id 10sf1562947lbg.9 for ; Fri, 19 Sep 2014 11:27:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=93HXmYEueBLspDejCBAcIVJtHMrRTM3v8Bhx0IMvuzw=; b=OpJrSsZfY874dIIMDQ7EWbukN4Doe29mAy78IYKdttDaYXY4e5mDy012aboY0WefpC N9y8tK44Y9dMNcOiSmgMmhtw0jZlLjj5HG90Tr+E7MlR11MCwW8pcDXYqMtD04z4okzj 6fPpwNLvjrwIr0V84kVyoEGzgUjoGDYq0WOhZYQw9h6LKz/hBUlueXILZ7dqTvqAFGwJ bJ+2M7m6mWZ4iYq1N2/75KTDpvG921unM5uoPoulF3Kz4MY2uOEvucPzTnjSfbkfDoPk 4AmtMm3blVRO1M4XsiKQ+0OiIf/EIbWWZ5rZ9p7O8nMfDeGs0p9/ZJgeg5s6X+UqYnn+ z4vg== X-Gm-Message-State: ALoCoQnRRsEMecYFZfcaDGJJI5UyLk62DCjpHrKnTk1CFSO0IVimKYwWuz5DcWwvAqNVD2235lwr X-Received: by 10.152.6.9 with SMTP id w9mr70811law.7.1411151277985; Fri, 19 Sep 2014 11:27:57 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.205.76 with SMTP id le12ls343878lac.34.gmail; Fri, 19 Sep 2014 11:27:57 -0700 (PDT) X-Received: by 10.152.88.97 with SMTP id bf1mr8549619lab.58.1411151277855; Fri, 19 Sep 2014 11:27:57 -0700 (PDT) Received: from mail-la0-f51.google.com (mail-la0-f51.google.com [209.85.215.51]) by mx.google.com with ESMTPS id m1si3637945lbs.55.2014.09.19.11.27.57 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 19 Sep 2014 11:27:57 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 as permitted sender) client-ip=209.85.215.51; Received: by mail-la0-f51.google.com with SMTP id gi9so3611076lab.38 for ; Fri, 19 Sep 2014 11:27:57 -0700 (PDT) X-Received: by 10.112.75.233 with SMTP id f9mr4860073lbw.102.1411151277795; Fri, 19 Sep 2014 11:27:57 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.112.130.169 with SMTP id of9csp989447lbb; Fri, 19 Sep 2014 11:27:57 -0700 (PDT) X-Received: by 10.66.191.7 with SMTP id gu7mr4246595pac.32.1411151276174; Fri, 19 Sep 2014 11:27:56 -0700 (PDT) Received: from mail-pa0-f42.google.com (mail-pa0-f42.google.com [209.85.220.42]) by mx.google.com with ESMTPS id vg8si4330505pbc.16.2014.09.19.11.27.55 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 19 Sep 2014 11:27:56 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.42 as permitted sender) client-ip=209.85.220.42; Received: by mail-pa0-f42.google.com with SMTP id et14so600326pad.15 for ; Fri, 19 Sep 2014 11:27:55 -0700 (PDT) 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> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ulf.hansson@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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); }; /*