From patchwork Fri Dec 19 10:54:19 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 42485 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 0316126C68 for ; Fri, 19 Dec 2014 10:54:26 +0000 (UTC) Received: by mail-ee0-f69.google.com with SMTP id d49sf533702eek.8 for ; Fri, 19 Dec 2014 02:54:24 -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=ZhnOEMbyEC4ssVUW6vX5OfUQqJIvqyXz8uJxa+QBjoE=; b=TwhbZse4iAWrVhOjkbpSlqkPk/U2my4DBA5tBsfE5N5awYmym3/Goh2UiNDmJVj+tp /RRm1izV0xVJDLEHh1qBD17o7sAfJ11YN9t6qHU5chu3eiBrowMZrauo+oxc1aWBqlWI 4Cqoj/v2P+qwMatbwr4xZkdDUq+7GfcxGRUcArWedjtGZDSXDx6hW7ERY+SfpbQ0ekSR NvNr76Gl6l9UphWDIvzV/ZnLklQYhXqCe0t8pOf4h6HvNq9ENchTFTtxmB24WeMyi3g+ Dov9M0SReoiqFuA24kw/1XGdRqeJ3PQ1DX6vgFGRV5OIpo5FY4JToCJaSUFEnljITo37 6VtQ== X-Gm-Message-State: ALoCoQlEpApstdAzTEV3m8CI9d8JQE2zGnSGpugKpW7g9mUEaVxwbwpHQSSizBL3KFvK84LORHwd X-Received: by 10.112.219.199 with SMTP id pq7mr243298lbc.9.1418986464892; Fri, 19 Dec 2014 02:54:24 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.207.3 with SMTP id ls3ls1255109lac.46.gmail; Fri, 19 Dec 2014 02:54:24 -0800 (PST) X-Received: by 10.112.141.42 with SMTP id rl10mr7120539lbb.98.1418986464374; Fri, 19 Dec 2014 02:54:24 -0800 (PST) Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com. [209.85.217.178]) by mx.google.com with ESMTPS id s3si1871004lbl.128.2014.12.19.02.54.24 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 19 Dec 2014 02:54:24 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.178 as permitted sender) client-ip=209.85.217.178; Received: by mail-lb0-f178.google.com with SMTP id f15so673951lbj.9 for ; Fri, 19 Dec 2014 02:54:24 -0800 (PST) X-Received: by 10.112.14.6 with SMTP id l6mr7163819lbc.91.1418986464274; Fri, 19 Dec 2014 02:54: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.112.142.69 with SMTP id ru5csp228231lbb; Fri, 19 Dec 2014 02:54:23 -0800 (PST) X-Received: by 10.152.21.9 with SMTP id r9mr7183043lae.76.1418986463929; Fri, 19 Dec 2014 02:54:23 -0800 (PST) Received: from mail-la0-f52.google.com (mail-la0-f52.google.com. [209.85.215.52]) by mx.google.com with ESMTPS id j5si9553905lbs.110.2014.12.19.02.54.23 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 19 Dec 2014 02:54:23 -0800 (PST) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.215.52 as permitted sender) client-ip=209.85.215.52; Received: by mail-la0-f52.google.com with SMTP id hs14so604677lab.25 for ; Fri, 19 Dec 2014 02:54:23 -0800 (PST) X-Received: by 10.152.37.105 with SMTP id x9mr7057802laj.96.1418986463764; Fri, 19 Dec 2014 02:54:23 -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 nz3sm2610155lbb.25.2014.12.19.02.54.21 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 19 Dec 2014 02:54:22 -0800 (PST) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Ulf Hansson , Chris Ball Cc: Russell King Subject: [PATCH V2] mmc: mmci: Use pm_runtime_put_noidle() during ->probe() Date: Fri, 19 Dec 2014 11:54:19 +0100 Message-Id: <1418986459-13443-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.178 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 --- Changes in v2: Move pm_runtime_put_noidle() after mmc_add_host(). --- 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..d2bbd25 100644 --- a/drivers/mmc/host/mmci.c +++ b/drivers/mmc/host/mmci.c @@ -1739,10 +1739,10 @@ 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); mmc_add_host(mmc); + pm_runtime_put_noidle(&dev->dev); return 0; clk_disable: