From patchwork Fri Dec 19 09:50:22 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 42483 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f69.google.com (mail-ee0-f69.google.com [74.125.83.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id BBAED26C68 for ; Fri, 19 Dec 2014 09:50:28 +0000 (UTC) Received: by mail-ee0-f69.google.com with SMTP id d49sf455000eek.4 for ; Fri, 19 Dec 2014 01:50:28 -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:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=15CBv6jk4rHUZ5izQOHNmjMXNIcG/t6uwLtojld6BmQ=; b=loBh7Ux1oGf3GVh0utxBBJZV9Us6ChfJ5gkbBhYKpkXU1ShSyEj0XaKo6C5sEYcZno 2k+CDKupvhPiPn3smqu/zy2yYoLigLj3AEAIURSlOQ+0d0qdhRaFRTPZRtkDYSv1dO+u ZyABqVVcB3JKStA6ngRr1sIE1a4ydbX2okdkQTQISfFL3ODDmG8xlBHU/htwN54MdPc/ +1CeNJ0pxk6NSg2ZKzi8D6eoHWgahAbsmsan88UeMkOZtlCqg5P9eHc4heLjWSp2vbdv 42mxKV/3YVk8ZCOvJK2ZnHeMGkkSdWLaL3LHGcfHX6aDqpdmdpo0fVWSUiO/5ueaSmhD G3fg== X-Gm-Message-State: ALoCoQnsIg8V32RKWcVWf2qqe5+zTEwVEvq4hRUQLoerlrclwwHGcLMfyjEG/SZx7ElDO8ggODgV X-Received: by 10.112.55.10 with SMTP id n10mr39162lbp.14.1418982627968; Fri, 19 Dec 2014 01:50:27 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.2.165 with SMTP id 5ls1358888lav.42.gmail; Fri, 19 Dec 2014 01:50:27 -0800 (PST) X-Received: by 10.153.5.1 with SMTP id ci1mr1637275lad.67.1418982627456; Fri, 19 Dec 2014 01:50:27 -0800 (PST) Received: from mail-lb0-f173.google.com (mail-lb0-f173.google.com. [209.85.217.173]) by mx.google.com with ESMTPS id un3si9499353lbb.21.2014.12.19.01.50.27 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 19 Dec 2014 01:50:27 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.173 as permitted sender) client-ip=209.85.217.173; Received: by mail-lb0-f173.google.com with SMTP id z12so508021lbi.18 for ; Fri, 19 Dec 2014 01:50:27 -0800 (PST) X-Received: by 10.112.131.1 with SMTP id oi1mr6814731lbb.2.1418982627326; Fri, 19 Dec 2014 01:50:27 -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.112.142.69 with SMTP id ru5csp212849lbb; Fri, 19 Dec 2014 01:50:27 -0800 (PST) X-Received: by 10.152.36.1 with SMTP id m1mr6822547laj.95.1418982626966; Fri, 19 Dec 2014 01:50:26 -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 jo7si9480223lbc.39.2014.12.19.01.50.26 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 19 Dec 2014 01:50:26 -0800 (PST) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.215.47 as permitted sender) client-ip=209.85.215.47; Received: by mail-la0-f47.google.com with SMTP id hz20so506943lab.20 for ; Fri, 19 Dec 2014 01:50:26 -0800 (PST) X-Received: by 10.152.206.1 with SMTP id lk1mr5316478lac.92.1418982626638; Fri, 19 Dec 2014 01:50:26 -0800 (PST) Received: from uffe-Latitude-E6430s.lan (90-231-160-185-no158.tbcn.telia.com. [90.231.160.185]) by mx.google.com with ESMTPSA id dx2sm1264368lbc.49.2014.12.19.01.50.25 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 19 Dec 2014 01:50:25 -0800 (PST) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Ulf Hansson , Chris Ball Cc: Russell King Subject: [PATCH] mmc: mmci: Use pm_runtime_put_noidle() during ->probe() Date: Fri, 19 Dec 2014 10:50:22 +0100 Message-Id: <1418982622-8118-1-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.9.1 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.217.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: , Previously the pm_runtime_put() caused the device to be runtime PM suspended, but then immediately being resumed when we add the host. Prevent this unnecessary runtime PM suspend/resume cycle during ->probe() by using the pm_runtime_put_noidle() variant instead. Signed-off-by: Ulf Hansson --- drivers/mmc/host/mmci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/mmci.c b/drivers/mmc/host/mmci.c index 8232e9a..3a05fca 100644 --- a/drivers/mmc/host/mmci.c +++ b/drivers/mmc/host/mmci.c @@ -1739,7 +1739,7 @@ static int mmci_probe(struct amba_device *dev, pm_runtime_set_autosuspend_delay(&dev->dev, 50); pm_runtime_use_autosuspend(&dev->dev); - pm_runtime_put(&dev->dev); + pm_runtime_put_noidle(&dev->dev); mmc_add_host(mmc);