From patchwork Fri Dec 19 09:47:03 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 42482 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3BFBA26C68 for ; Fri, 19 Dec 2014 09:47:09 +0000 (UTC) Received: by mail-wi0-f197.google.com with SMTP id l15sf453459wiw.4 for ; Fri, 19 Dec 2014 01:47:08 -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=6jAq3Ny98B0Bbwrh9YRMITwBz+SJYweC9u8Dlyzpry4=; b=NvFDG1kBkrmZ2Y35FslFXjBi6BxNLJjuSnpVm55Jr//IcqPeBJ+cWlK0arZL7fZJp5 Hjfo0833cHSebVMBw3XJJiT5wuQcpBkp/1Ds8WEMP4/IzCLWPMC+f2Pe57v2xQZKVhof H5tSRwjNG3bpV0ptO9d1jIrr3D3bZBCHuhFLFEW4GJ2WZ35bwYGYlGrMqV4YyQ5N03GV Ap25D4QdG7ySMft3hn19mcNhGlJu5Ol+UWxSGpv6mpNm764u9iIwJsk6AvtVPSWywQMF j9byyrqiJAD5ZG8VaESF1e8lWOjfpVF0Uh3wgxWPqba1IkP/5C0FiYgDGdUaF4Wxbso2 x2PA== X-Gm-Message-State: ALoCoQkvyB9BHGdDV8dIyavQRABLmt36UZTf6HrrPg19hOm4vpI5xlJY2RiQeQ55hwFBBLJFaUSf X-Received: by 10.112.166.102 with SMTP id zf6mr175631lbb.12.1418982428501; Fri, 19 Dec 2014 01:47:08 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.36.5 with SMTP id m5ls1154453laj.71.gmail; Fri, 19 Dec 2014 01:47:08 -0800 (PST) X-Received: by 10.112.98.99 with SMTP id eh3mr6793043lbb.32.1418982428168; Fri, 19 Dec 2014 01:47:08 -0800 (PST) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com. [209.85.217.171]) by mx.google.com with ESMTPS id og3si9508032lbb.6.2014.12.19.01.47.08 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 19 Dec 2014 01:47:08 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) client-ip=209.85.217.171; Received: by mail-lb0-f171.google.com with SMTP id w7so511560lbi.2 for ; Fri, 19 Dec 2014 01:47:08 -0800 (PST) X-Received: by 10.112.14.6 with SMTP id l6mr6875622lbc.91.1418982428058; Fri, 19 Dec 2014 01:47:08 -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 ru5csp212140lbb; Fri, 19 Dec 2014 01:47:07 -0800 (PST) X-Received: by 10.112.181.106 with SMTP id dv10mr2151959lbc.88.1418982427664; Fri, 19 Dec 2014 01:47:07 -0800 (PST) Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com. [209.85.217.174]) by mx.google.com with ESMTPS id b1si9438124lab.72.2014.12.19.01.47.07 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 19 Dec 2014 01:47:07 -0800 (PST) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.217.174 as permitted sender) client-ip=209.85.217.174; Received: by mail-lb0-f174.google.com with SMTP id 10so508043lbg.19 for ; Fri, 19 Dec 2014 01:47:07 -0800 (PST) X-Received: by 10.152.30.6 with SMTP id o6mr6988889lah.64.1418982427189; Fri, 19 Dec 2014 01:47:07 -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 ci9sm2564568lad.21.2014.12.19.01.47.05 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 19 Dec 2014 01:47:06 -0800 (PST) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Ulf Hansson , Chris Ball Cc: Dong Aisheng , Shawn Guo Subject: [PATCH 2/2] mmc: sdhci-esdhc-imx: Fixup runtime PM conditions during ->probe() Date: Fri, 19 Dec 2014 10:47:03 +0100 Message-Id: <1418982423-8069-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.171 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: , By configure runtime PM prior we enable the use of it, we close the gap for strange and unhandled conditions. Moreover it makes us rely on the driver core, after finalized ->probe(), to request an inactive device to become runtime PM idle/suspended, which earlier potentially could happen already at pm_runtime_set_autosuspend_delay(). Signed-off-by: Ulf Hansson --- drivers/mmc/host/sdhci-esdhc-imx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c index 043866c..10ef824 100644 --- a/drivers/mmc/host/sdhci-esdhc-imx.c +++ b/drivers/mmc/host/sdhci-esdhc-imx.c @@ -1080,10 +1080,10 @@ static int sdhci_esdhc_imx_probe(struct platform_device *pdev) goto disable_clk; pm_runtime_set_active(&pdev->dev); - pm_runtime_enable(&pdev->dev); pm_runtime_set_autosuspend_delay(&pdev->dev, 50); pm_runtime_use_autosuspend(&pdev->dev); pm_suspend_ignore_children(&pdev->dev, 1); + pm_runtime_enable(&pdev->dev); return 0;