Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7073944ybi; Mon, 22 Jul 2019 06:43:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqz9+VxMv7+mw3FLgFsg4FhNC08IcUnJvXvi/hsm9/ruQp7RHjSqPz1VoSidUmzAysl322Mi X-Received: by 2002:a17:902:82c4:: with SMTP id u4mr75445709plz.196.1563802982776; Mon, 22 Jul 2019 06:43:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563802982; cv=none; d=google.com; s=arc-20160816; b=K9ZNYEMridx/iMESEmZ+slPnTpncKgN58zPbT/fF39nzfsXvPjHmFvwenJCJQtShgg zmyC6neBVGJk5bA9vTepX4okYKC0tXY/2o3TDu+KRACMgpeqZUl/1NKI8Ca3aYgfy7P3 2t+l2cYwwvTcu3jvUuA9WcYMhy6pAN2It0tVTxVcE1aYF0MaezJQZc1Wu+UPfZJbFEZA ZDOuRZng+KWvbTO9g40I8Hsnczi5wmZXDQUtTN3lUQomJSd5SyXK+meIj1nQBsKb+8lu vaULKaafHDKlRiw3zm4Hq+566FgsBRpX34c1We/73MRbcWjd0klftxeLp7p7rDZpJ6O8 LiAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=iyYB86RN0dwd4EULEBIRa3DFNYh1x6Mf9BF1tEQUtcc=; b=WxneisBQf1f+A9PpROkZJ8H7+jTRHElUZ/YRUwFHzIAxV+ShtnKf5+grlECUGsqDNf EU4zWu7QbOALcYLWPyB2yT2gy4ffiJgQBGYWqtpvw6YMN0hgwVU5fnJAxqZsW45DEdYR fIgG1zIFuy/lckOY7y/aTE6G8K+zMWyKNxEOWa6YggUBBrKwLnM697klYTI4mngT8I7x WRX4W9t9Z7Zp01p4viBJ9fkRmMxwyFP1cmENrdtG2vrzV6vliKq4hf9WGR4T/YaXqPzm MVNE3tAT+3XZY7xSwjzYcQJ6zuLTtI1+ZvSu+JGpAI+yc+suflIkQlqh4PATMIZhrsuT VjoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DuO1BvyP; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y2si8064619pgp.284.2019.07.22.06.42.46; Mon, 22 Jul 2019 06:43:02 -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; dkim=pass header.i=@linaro.org header.s=google header.b=DuO1BvyP; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729876AbfGVNmY (ORCPT + 99 others); Mon, 22 Jul 2019 09:42:24 -0400 Received: from mail-ua1-f65.google.com ([209.85.222.65]:45295 "EHLO mail-ua1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727805AbfGVNmY (ORCPT ); Mon, 22 Jul 2019 09:42:24 -0400 Received: by mail-ua1-f65.google.com with SMTP id v18so15297723uad.12 for ; Mon, 22 Jul 2019 06:42:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=iyYB86RN0dwd4EULEBIRa3DFNYh1x6Mf9BF1tEQUtcc=; b=DuO1BvyPUHlTBv8+4qMc5iPAN01crsg/PmFwH9BVFPitVjC7/UQnmGRQU9BxuPXngJ 5+wLqJwE6tK/yuHuDsPigZg49HK+TSoa3pd+zy8CaF2LAkdWq8779DzdW1DEO38mzD+j iUXttNfP62Bxw2edQcUCo5sxPfyWJk0sFlWTMG0k1kUCbJv4TPNDzVsJzjAoBiYPWiTj 9baHYDk5v5wDE22A57NtIVEGQGayb2lQgSHAst001JYs6kaI5gVcaK8bQcE1JBSs83DZ CKxiHd8lS8g2kwPfTE7mIc+cFUaw4VdcfmfOEN8mHH8uDxcJ7JLiHKkqgc0xrpx95Id+ 39Ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=iyYB86RN0dwd4EULEBIRa3DFNYh1x6Mf9BF1tEQUtcc=; b=GKwTM0Tz4k6Jx6jq/0dTAtZqqMlKSoZUO78YypDmQpPZULP55OjwXpZcfvtV7io3rC Kpo13Xi8kuf2g1rcsqga+qBPhdRAK2xKCJP7oO0wXkauSLeuW+Bdia90kt5RSCb16SsP xe6X8/iwEq1pEvUSq9d00j5yl+5WVAoQekqjwgi1Hjl9utaOQS+6qz8r/qCDWycOSKFr kSn135YAca1mtXrLwsXr2FDNUOc8DsNABrDd6HYD0eSsOuJagVXxxWRNlU9T6qabsCa4 jV6QgDmAR8n56FghxLuCfWx2+3Q6J/6oZZeNRR41G1pjMjtaqpjpPv+HpRWD2MlLLl7a G5IQ== X-Gm-Message-State: APjAAAWjHDZ8MdBKzHAYjdftSMSSlvkYbwcvtB4kZYTYFz9g7HbxZaLF kNGrna6pjPk9XuiPHbToBGakHAyUiWhjSC5U6dG05w== X-Received: by 2002:ab0:70b1:: with SMTP id q17mr17349220ual.100.1563802943364; Mon, 22 Jul 2019 06:42:23 -0700 (PDT) MIME-Version: 1.0 References: <7bff392d44bf32e9e762ef6e3b53df0d95c22c91.1563184567.git.baolin.wang@linaro.org> In-Reply-To: <7bff392d44bf32e9e762ef6e3b53df0d95c22c91.1563184567.git.baolin.wang@linaro.org> From: Ulf Hansson Date: Mon, 22 Jul 2019 15:41:47 +0200 Message-ID: Subject: Re: [PATCH] mmc: host: sdhci-sprd: Fix the missing pm_runtime_put_noidle() To: Baolin Wang Cc: Adrian Hunter , Chunyan Zhang , Orson Zhai , Vincent Guittot , "linux-mmc@vger.kernel.org" , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 15 Jul 2019 at 12:00, 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 Applied for fixes and by adding a fixes/stable tag, thanks! Kind regards Uffe > --- > 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); > > -- > 1.7.9.5 >