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: 3577581 Return-Path: X-Original-To: patchwork-linux-spi@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 8696AC02DD for ; Tue, 4 Feb 2014 16:04:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B066C2018B for ; Tue, 4 Feb 2014 16:04:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DD15320158 for ; Tue, 4 Feb 2014 16:04:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754649AbaBDP72 (ORCPT ); Tue, 4 Feb 2014 10:59:28 -0500 Received: from mail-la0-f41.google.com ([209.85.215.41]:52660 "EHLO mail-la0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754610AbaBDP7Y (ORCPT ); Tue, 4 Feb 2014 10:59:24 -0500 Received: by mail-la0-f41.google.com with SMTP id mc6so6651770lab.14 for ; Tue, 04 Feb 2014 07:59:23 -0800 (PST) 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=hwyfgQVNMs6sf1pFvNH/FOx7WGDh/JVdbtxnWKhQqfQ=; b=NAOYaHHP42AntEUWKh39wM5JBFJ8XNQGdW3L5OY8O5OhPRJ5MFT9FopLsnIULgCA0t wavr6Z4ynKSyth/3MgcFkMU0qcTmirM0cod1v6tv7aV4XR0ERjTNO4BtJW92FMhXiLLA RGJvMUMtPt9AAqN9uVRchOQ8UVx5U/mtCNaH4+u4E5RsFAjnKSQ3XH/s+hUlsnVmocR4 sPKf+OdWjIwS7muBqDbFfLazwgXK0voYc4PkFm59eM/rDhy5WYrd9CmdPpX9uqKotFMu PwgcuNjE9caAc46Uzy4ZDCEpja0+h0EPvGuNBts3ZrFvEgFSHg13qzV7ARo9mP9ftpoM O0FQ== X-Gm-Message-State: ALoCoQm50pEJNRSBqfjmZFwYlfFd4w+rIjh8HvPDqC/UWZqufupvobx3mtC5rnlLnQf6hkwKSGUL 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> Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 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,