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: 4774111 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id B6C8D9F3B4 for ; Mon, 25 Aug 2014 12:28:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E32832010B for ; Mon, 25 Aug 2014 12:28:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 289A3200D6 for ; Mon, 25 Aug 2014 12:28:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932383AbaHYM0m (ORCPT ); Mon, 25 Aug 2014 08:26:42 -0400 Received: from mail-wi0-f177.google.com ([209.85.212.177]:36869 "EHLO mail-wi0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932367AbaHYM0k (ORCPT ); Mon, 25 Aug 2014 08:26:40 -0400 Received: by mail-wi0-f177.google.com with SMTP id ho1so2430801wib.16 for ; Mon, 25 Aug 2014 05:26:39 -0700 (PDT) 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=uwFVFylxyggpRQHJMFiMmz7RQLGWtYv1uhKTNEOAxsI=; b=cdLA9htWuH6V98hKTzGpJKItRgoH5DaUtrcZ3cEyJAedQy4JAtxVFmp1E+huQ6Rx01 6jNUABifO0mMeGfww+PLw0f9AG8lO8kaNHH240d2TPdtFJ9g62WMMdxHduc+bp06jSp4 BY1eG7vNop+6TOpL/h+qDJyfXojWAgRe7uMUK0YkF66OOY3dXLsctg7FMVtBhXHXVnm/ mIfeagIxgZNHfg5qaI4LHwhGu5CsiZ/J9MBHoj9VAUNmBtXfxG5fENCBZRlJZVNlS0R8 QGRZUD6+iC4HBmysba5fZD6R7PeSa4LZKse4iuvpu9KkaaGwVNv6KqBOtuMAWeJ3ZgQo iCtA== X-Gm-Message-State: ALoCoQm/qvY6NB846s17Kg77k0Bce0ES49Jml9817+1S0YrwRgdmlBrqhNPSqrYyYE2ckR+Gt6jb 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> Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 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 = {