From patchwork Mon Aug 25 12:26:01 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 35906 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f199.google.com (mail-pd0-f199.google.com [209.85.192.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A1BC4203C0 for ; Mon, 25 Aug 2014 12:26:41 +0000 (UTC) Received: by mail-pd0-f199.google.com with SMTP id v10sf108115567pde.10 for ; Mon, 25 Aug 2014 05:26:41 -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=uwFVFylxyggpRQHJMFiMmz7RQLGWtYv1uhKTNEOAxsI=; b=KxDzRDm6QkDGTiepC77Y7/emAr/S8PzyNrTZCF5H1ygJrLvmxnz8KGtJs/gucnSvpz mDT1Jk+LE5UBpt2GKldYVVr/GUdWQKtq7+HQg896RWYPG090Ioi6wCD0/UVA0b4B9+4U qjDfMpurhDQw6MU22ce7vMG1VaOiCTdh5FYKnKElr2yJOxDZtBnNwLJ1hSJcEfpUUrFt IQrAqah49mU4C5iEANo0HgsjkvQNyKWhbnfnTifOCdZ3zKIs9LLjMbVR3QGMW5+jkrIg nxVgfcri/Tw3SiI/5/plmSJZPEYUPVnd22/s1x5DpEEv275x3WoSJcOW6B3ZZ2xaTJXc dXrA== X-Gm-Message-State: ALoCoQn4QjjN7yTvvkWRVfzncspyyBTyszYkfXUxRm8ryvCd+VQDuTxSbAwMDRYkwjU/tGDHjmu1 X-Received: by 10.66.196.193 with SMTP id io1mr11384441pac.28.1408969600979; Mon, 25 Aug 2014 05:26:40 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.23.69 with SMTP id 63ls1916238qgo.59.gmail; Mon, 25 Aug 2014 05:26:40 -0700 (PDT) X-Received: by 10.220.251.200 with SMTP id mt8mr6695055vcb.24.1408969600868; Mon, 25 Aug 2014 05:26:40 -0700 (PDT) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id xe4si16309397vcb.10.2014.08.25.05.26.40 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 25 Aug 2014 05:26:40 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.173 as permitted sender) client-ip=209.85.220.173; Received: by mail-vc0-f173.google.com with SMTP id hy10so14873417vcb.4 for ; Mon, 25 Aug 2014 05:26:40 -0700 (PDT) X-Received: by 10.221.62.195 with SMTP id xb3mr5347392vcb.45.1408969600790; Mon, 25 Aug 2014 05:26:40 -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.221.45.67 with SMTP id uj3csp113269vcb; Mon, 25 Aug 2014 05:26:40 -0700 (PDT) X-Received: by 10.194.119.193 with SMTP id kw1mr8835160wjb.82.1408969599534; Mon, 25 Aug 2014 05:26:39 -0700 (PDT) Received: from mail-wg0-f52.google.com (mail-wg0-f52.google.com [74.125.82.52]) by mx.google.com with ESMTPS id y12si35687wia.51.2014.08.25.05.26.39 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 25 Aug 2014 05:26:39 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 74.125.82.52 as permitted sender) client-ip=74.125.82.52; Received: by mail-wg0-f52.google.com with SMTP id a1so12975088wgh.35 for ; Mon, 25 Aug 2014 05:26:39 -0700 (PDT) X-Received: by 10.180.37.16 with SMTP id u16mr15382269wij.72.1408969599021; Mon, 25 Aug 2014 05:26:39 -0700 (PDT) Received: from localhost.localdomain ([85.235.11.236]) by mx.google.com with ESMTPSA id u5sm145337wia.17.2014.08.25.05.26.37 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 25 Aug 2014 05:26:38 -0700 (PDT) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Ian Molton , Chris Ball Cc: Geert Uytterhoeven , Linux-sh list , linux-kernel@vger.kernel.org, Ulf Hansson Subject: [PATCH 09/12] mmc: tmio_mmc: Enable runtime PM support Date: Mon, 25 Aug 2014 14:26:01 +0200 Message-Id: <1408969564-6335-10-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1408969564-6335-1-git-send-email-ulf.hansson@linaro.org> References: <1408969564-6335-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.220.173 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: , To take advantage of the clock gating support, use the runtime PM callbacks provided by the tmio core. Additionally, we make use of the SET_PM_RUNTIME_PM_OPS, which is a preparation needed to simplify system PM. Signed-off-by: Ulf Hansson --- drivers/mmc/host/tmio_mmc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mmc/host/tmio_mmc.c b/drivers/mmc/host/tmio_mmc.c index cfad844..58f50ef 100644 --- a/drivers/mmc/host/tmio_mmc.c +++ b/drivers/mmc/host/tmio_mmc.c @@ -135,6 +135,9 @@ static int tmio_mmc_remove(struct platform_device *pdev) static const struct dev_pm_ops tmio_mmc_dev_pm_ops = { SET_SYSTEM_SLEEP_PM_OPS(tmio_mmc_suspend, tmio_mmc_resume) + SET_PM_RUNTIME_PM_OPS(tmio_mmc_host_runtime_suspend, + tmio_mmc_host_runtime_resume, + NULL) }; static struct platform_driver tmio_mmc_driver = {