From patchwork Fri Apr 12 09:41:30 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 16074 Return-Path: X-Original-To: linaro@staging.patches.linaro.org Delivered-To: linaro@staging.patches.linaro.org Received: from mail-qc0-f197.google.com (mail-qc0-f197.google.com [209.85.216.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5D47C26EB0 for ; Fri, 12 Apr 2013 09:42:36 +0000 (UTC) Received: by mail-qc0-f197.google.com with SMTP id b14sf3416309qcs.0 for ; Fri, 12 Apr 2013 02:42:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-beenthere:x-received:received-spf:x-received :x-forwarded-to:x-forwarded-for:delivered-to:x-received:received-spf :from:to:cc:subject:date:message-id:x-mailer:mime-version :x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe :content-type; bh=99sVJQRvTJ5ka1ipD2N9nzbYkMHYLN6zM4rDJeMWDJw=; b=NaIyyE9MeRelM8i8OlBnBVMWggOIk7RJIcQFBmz8i1SKvRnccCO6q2f17S4S4a/0Rd rjyp4PHHRCNDv4G0bNCZgvNs9IJavCd5RatUMz4w0BCkMx5j1cN3DKk5Bkr+sbTYW9gN ZKe8aylLOqxGvFRyQhOE4CBa7UUdCj8djSmrBdK0Pu5ulGWbojZ7rRZObD1b+jVyMCpY kBR42mUhAUMi5ocHs/PwJZgm3rH6xFxIcAUV4yhwJ9Jk6ChLW2pjswVs35KpsoB8qXUQ i2myB2YyxriXFlrAtMmUM1oIAskoPN1u4dTkeWI52/ITyozY3lMdQJUZIzb0M68o2iki T1xA== X-Received: by 10.224.160.65 with SMTP id m1mr5866420qax.2.1365759732642; Fri, 12 Apr 2013 02:42:12 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.71.37 with SMTP id r5ls1256915qeu.15.gmail; Fri, 12 Apr 2013 02:42:12 -0700 (PDT) X-Received: by 10.58.220.129 with SMTP id pw1mr7867849vec.32.1365759732504; Fri, 12 Apr 2013 02:42:12 -0700 (PDT) Received: from mail-vb0-x235.google.com (mail-vb0-x235.google.com [2607:f8b0:400c:c02::235]) by mx.google.com with ESMTPS id dl5si6044485ved.17.2013.04.12.02.42.12 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 12 Apr 2013 02:42:12 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c02::235 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c02::235; Received: by mail-vb0-f53.google.com with SMTP id i3so1992638vbh.12 for ; Fri, 12 Apr 2013 02:42:12 -0700 (PDT) X-Received: by 10.220.73.68 with SMTP id p4mr7897916vcj.41.1365759732265; Fri, 12 Apr 2013 02:42:12 -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.58.127.98 with SMTP id nf2csp58289veb; Fri, 12 Apr 2013 02:42:11 -0700 (PDT) X-Received: by 10.14.201.67 with SMTP id a43mr8868388eeo.33.1365759731052; Fri, 12 Apr 2013 02:42:11 -0700 (PDT) Received: from eu1sys200aog104.obsmtp.com (eu1sys200aog104.obsmtp.com [207.126.144.117]) by mx.google.com with SMTP id e45si10831196eep.96.2013.04.12.02.41.50 (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 12 Apr 2013 02:42:11 -0700 (PDT) Received-SPF: neutral (google.com: 207.126.144.117 is neither permitted nor denied by best guess record for domain of ulf.hansson@stericsson.com) client-ip=207.126.144.117; Received: from beta.dmz-ap.st.com ([138.198.100.35]) (using TLSv1) by eu1sys200aob104.postini.com ([207.126.147.11]) with SMTP ID DSNKUWfW2sSMXkdFKltNrZV6yMaU18JNKoEN@postini.com; Fri, 12 Apr 2013 09:42:10 UTC Received: from zeta.dmz-ap.st.com (ns6.st.com [138.198.234.13]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 030F8BE; Fri, 12 Apr 2013 09:33:31 +0000 (GMT) Received: from relay1.stm.gmessaging.net (unknown [10.230.100.17]) by zeta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 1030B1A0; Fri, 12 Apr 2013 09:41:38 +0000 (GMT) Received: from exdcvycastm022.EQ1STM.local (alteon-source-exch [10.230.100.61]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (Client CN "exdcvycastm022", Issuer "exdcvycastm022" (not verified)) by relay1.stm.gmessaging.net (Postfix) with ESMTPS id B1FFF24C080; Fri, 12 Apr 2013 11:41:31 +0200 (CEST) Received: from steludxu1397.stericsson.com (10.230.100.153) by smtp.stericsson.com (10.230.100.30) with Microsoft SMTP Server (TLS) id 8.3.279.5; Fri, 12 Apr 2013 11:41:36 +0200 From: Ulf Hansson To: "Rafael J. Wysocki" , Len Brown , Pavel Machek , Cc: , Rickard Andersson , Ulf Hansson , Kevin Hilman , Alan Stern Subject: [PATCH] PM / Runtime: Asyncronous idle|suspend parent devices at removal Date: Fri, 12 Apr 2013 11:41:30 +0200 Message-ID: <1365759690-23687-1-git-send-email-ulf.hansson@stericsson.com> X-Mailer: git-send-email 1.7.10 MIME-Version: 1.0 X-Gm-Message-State: ALoCoQlMvxLKsbSjNee5IXqK8aJPUu6qVJUn1O85IcqHnN2xwgRkmr1a+O2Bnf6ztyl/hsHnI+iZ X-Original-Sender: patch@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c02::235 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) 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: , From: Ulf Hansson For irq safe devices return the runtime reference for the parent by using the asyncronous runtime PM API. Thus we don't have to wait for it to become idle|suspended. Instead we can move on and handle the next device in queue. Signed-off-by: Ulf Hansson Cc: Kevin Hilman Cc: Alan Stern --- drivers/base/power/runtime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/base/power/runtime.c b/drivers/base/power/runtime.c index 1244930..ef13ad08 100644 --- a/drivers/base/power/runtime.c +++ b/drivers/base/power/runtime.c @@ -1400,5 +1400,5 @@ void pm_runtime_remove(struct device *dev) if (dev->power.runtime_status == RPM_ACTIVE) pm_runtime_set_suspended(dev); if (dev->power.irq_safe && dev->parent) - pm_runtime_put_sync(dev->parent); + pm_runtime_put(dev->parent); }