Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4139011ybi; Mon, 15 Jul 2019 04:29:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqzkbYvYjUkL40BWSlA6YHURwnibjxKbH1QVE5jYdjTcKcUync+2Bbf4TDmwNVpnGadhvdWb X-Received: by 2002:a17:902:8548:: with SMTP id d8mr27919472plo.100.1563190187729; Mon, 15 Jul 2019 04:29:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563190187; cv=none; d=google.com; s=arc-20160816; b=pRyS+44VEDaFaodyLcy0QHbhWcVFoTKfiuqtpD2Ipo5u5qBkyRewZ5NNccbEg0kpi8 89AVh1HK9yn/3CkN2gJoI+1hgFa60gBGRn3sO3TFEY2gfVGJaDEny+lPtTUTlpi0wsAl ttv45JR2hLsmi8NbRFXh1p+/mSvApOq3QflWud7tJZgoa1r7OMYqSSRIV+tP9I6g9INr NGKh3Mk7KaW0K34qndGSlRrfRek+eM2CBtQOZJO5sKc76sgAeJD0JrXVBhbyQrczZMFv l9J/tPmdB1Mz9DrvDuA9VI2Ui3t/zptAMKi+JiUJmt2R5iFf4Dw4jOP+XfWCmhNJqv9g ItVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject; bh=x+5XQAyENd+qTvuEYDkoa/eVq5az+8UOhE42SEsdYmA=; b=yyDu7ji3GNYVKOz+w6X84ZJElchGPBYt2/9hRRnsP39rNc65mSeRPIl+VTdeJO+cxe Tdkl3Rm/2tUSDTPk2nc/EPSC+JjC7YnggX59UXXe2kS0w5GJFHdprYswZBFihptIZNHo cqiMJ3PbIIfpIhW/kIWQWX+4bi6HfR/IoeAt853XoGByy9LUacsUzpSLYArxWB9+D6sE msCyHm5kcjNyQs3jA1sHZT2Iv3evOU7L38egnSdrEvpdv+H+DwFRu5dzHoQnyapYTSCk 2/4Zu2XOgFXGiV2zmsCFS1D8o4WFT95V8tEhxlthsg2cJ2OQZUK4iVQuEKf79d5ORchv IKwQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u12si6301426pfh.6.2019.07.15.04.29.30; Mon, 15 Jul 2019 04:29:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729840AbfGOL1w (ORCPT + 99 others); Mon, 15 Jul 2019 07:27:52 -0400 Received: from mga01.intel.com ([192.55.52.88]:16383 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729533AbfGOL1v (ORCPT ); Mon, 15 Jul 2019 07:27:51 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Jul 2019 04:27:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,493,1557212400"; d="scan'208";a="169585386" Received: from ahunter-desktop.fi.intel.com (HELO [10.237.72.122]) ([10.237.72.122]) by orsmga003.jf.intel.com with ESMTP; 15 Jul 2019 04:27:47 -0700 Subject: Re: [PATCH] mmc: host: sdhci-sprd: Fix the missing pm_runtime_put_noidle() To: Baolin Wang , ulf.hansson@linaro.org, zhang.lyra@gmail.com, orsonzhai@gmail.com Cc: vincent.guittot@linaro.org, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org References: <7bff392d44bf32e9e762ef6e3b53df0d95c22c91.1563184567.git.baolin.wang@linaro.org> From: Adrian Hunter Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki Message-ID: Date: Mon, 15 Jul 2019 14:26:33 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <7bff392d44bf32e9e762ef6e3b53df0d95c22c91.1563184567.git.baolin.wang@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15/07/19 1:00 PM, Baolin Wang wrote: > When the SD host controller tries to probe again due to the derferred > probe mechanism, it will always keep the SD host device as runtime > resume state due to missing the runtime put operation in error path > last time. > > Thus add the pm_runtime_put_noidle() in error path to make the PM runtime > counter balance, which can make the SD host device's PM runtime work well. > > Signed-off-by: Baolin Wang Acked-by: Adrian Hunter > --- > drivers/mmc/host/sdhci-sprd.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/mmc/host/sdhci-sprd.c b/drivers/mmc/host/sdhci-sprd.c > index 6ee340a..603a5d9 100644 > --- a/drivers/mmc/host/sdhci-sprd.c > +++ b/drivers/mmc/host/sdhci-sprd.c > @@ -624,6 +624,7 @@ static int sdhci_sprd_probe(struct platform_device *pdev) > sdhci_cleanup_host(host); > > pm_runtime_disable: > + pm_runtime_put_noidle(&pdev->dev); > pm_runtime_disable(&pdev->dev); > pm_runtime_set_suspended(&pdev->dev); > >