From patchwork Tue Feb 4 15:58:43 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 24110 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@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 4CD62202FA for ; Tue, 4 Feb 2014 15:59:26 +0000 (UTC) Received: by mail-qc0-f197.google.com with SMTP id e16sf21455796qcx.4 for ; Tue, 04 Feb 2014 07:59:25 -0800 (PST) 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=hwyfgQVNMs6sf1pFvNH/FOx7WGDh/JVdbtxnWKhQqfQ=; b=N2sEJgz/FFyrY4jRhBvMzmlVpDBq/afcvKqa10addyQYsR8raflUo081elimWWFTl7 7KGnHddHFLWXpQZMgYzEmLIAXzPcvaeFHMpTDPbtMa4smlJ5tB8ZGjPArUA+KjhqxSIT MXSy/3RjukNKKEM2I0iuFpWWUUkZ0S3nowheZ5wy3T3pSIScg9J86hiXvSO6Vb8Is6wW 4UsWFoCbxaOhk5jsfMzBtH21eOBLtYtnOtpphi8KAr6HIvkYtPgpP1Vk4oRjtm4FmK// PMATMmva7QFFz5tMGVsTyCX6Fj4kyr/IAZvwmwax13B+66sMbO30TJ3GAyQUoaA7lCE+ XNaw== X-Gm-Message-State: ALoCoQmDARYPbzfjrqO6Z5Pz8UgO2wRWxnZZDeYdyatD7Er3fxSPDFsfCTWu2x8v/JAfZikBnMuy X-Received: by 10.236.102.40 with SMTP id c28mr196980yhg.11.1391529565200; Tue, 04 Feb 2014 07:59:25 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.20.100 with SMTP id 91ls2369533qgi.18.gmail; Tue, 04 Feb 2014 07:59:25 -0800 (PST) X-Received: by 10.220.252.134 with SMTP id mw6mr24987vcb.51.1391529565100; Tue, 04 Feb 2014 07:59:25 -0800 (PST) Received: from mail-ve0-f177.google.com (mail-ve0-f177.google.com [209.85.128.177]) by mx.google.com with ESMTPS id uo16si8306310veb.86.2014.02.04.07.59.24 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 04 Feb 2014 07:59:24 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.177 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.177; Received: by mail-ve0-f177.google.com with SMTP id jz11so6069883veb.36 for ; Tue, 04 Feb 2014 07:59:24 -0800 (PST) X-Received: by 10.58.229.164 with SMTP id sr4mr32518355vec.18.1391529564858; Tue, 04 Feb 2014 07:59:24 -0800 (PST) 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.220.174.196 with SMTP id u4csp245346vcz; Tue, 4 Feb 2014 07:59:24 -0800 (PST) X-Received: by 10.152.242.36 with SMTP id wn4mr287620lac.84.1391529563884; Tue, 04 Feb 2014 07:59:23 -0800 (PST) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com [209.85.215.47]) by mx.google.com with ESMTPS id m9si12962586laf.58.2014.02.04.07.59.23 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 04 Feb 2014 07:59:23 -0800 (PST) Received-SPF: neutral (google.com: 209.85.215.47 is neither permitted nor denied by best guess record for domain of ulf.hansson@linaro.org) client-ip=209.85.215.47; Received: by mail-la0-f47.google.com with SMTP id hr17so6568470lab.20 for ; Tue, 04 Feb 2014 07:59:23 -0800 (PST) X-Received: by 10.152.236.72 with SMTP id us8mr30377688lac.11.1391529563214; Tue, 04 Feb 2014 07:59:23 -0800 (PST) Received: from localhost.localdomain (host-95-199-220-119.mobileonline.telia.com. [95.199.220.119]) by mx.google.com with ESMTPSA id dm8sm35906603lad.7.2014.02.04.07.59.20 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 04 Feb 2014 07:59:22 -0800 (PST) From: Ulf Hansson To: Russell King , linux-arm-kernel@lists.infradead.org Cc: Alessandro Rubini , Linus Walleij , Wolfram Sang , Chris Ball , Mark Brown , linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, linux-spi@vger.kernel.org, linux-mmc@vger.kernel.org, Ulf Hansson Subject: [PATCH 02/17] amba: Add late and early PM callbacks Date: Tue, 4 Feb 2014 16:58:43 +0100 Message-Id: <1391529538-21685-3-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1391529538-21685-1-git-send-email-ulf.hansson@linaro.org> References: <1391529538-21685-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=neutral (google.com: 209.85.128.177 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: , To give provision for amba drivers to make use of the late|early PM callbacks, we point the amba bus PM callbacks to the generic versions of these. Cc: Russell King Signed-off-by: Ulf Hansson --- drivers/amba/bus.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/amba/bus.c b/drivers/amba/bus.c index 3cf61a1..c255d62 100644 --- a/drivers/amba/bus.c +++ b/drivers/amba/bus.c @@ -123,6 +123,12 @@ static const struct dev_pm_ops amba_pm = { .thaw = pm_generic_thaw, .poweroff = pm_generic_poweroff, .restore = pm_generic_restore, + .suspend_late = pm_generic_suspend_late, + .resume_early = pm_generic_resume_early, + .freeze_late = pm_generic_freeze_late, + .thaw_early = pm_generic_thaw_early, + .poweroff_late = pm_generic_poweroff_late, + .restore_early = pm_generic_restore_early, SET_PM_RUNTIME_PM_OPS( amba_pm_runtime_suspend, amba_pm_runtime_resume,