From patchwork Mon Jul 15 10:00:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "\(Exiting\) Baolin Wang" X-Patchwork-Id: 168987 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp4178063ilk; Mon, 15 Jul 2019 03:00:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqxQTptggMxiRJHMoKLHmBEdgk2A0+6a8JYrkiqoD9GOmhec1m0amT6Hi9aOkvP7RuDE4snQ X-Received: by 2002:a17:902:583:: with SMTP id f3mr27270295plf.137.1563184831453; Mon, 15 Jul 2019 03:00:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563184831; cv=none; d=google.com; s=arc-20160816; b=CvaNCoDvwfbyzZQ+qUt2tvqhUtRqdUXBfHlhAXbfXBXuBXHq4ebR1CHfPBm/4mcD1a N+r9zgKmEJBZ8TN+X8hFIbB9NZhfsFqhCNps7oR6joAlaGBzw7rzdwyqiGob6LeHeFJg VW0Kc4KdusvvICGjy8OEVfLiJE85OMjSaERUDFq0iKTNjdeYEJ69SF5W1VIHx4+Rzsxn eqcsaaqIRm3ZddJUWs1pqMNTl+8ja1AEPWw+91ox3UxW4b3YqvMQGIDRKwQVB/X8EB1w tRBrkjuXMTPwehJTyb3zEgY6X2XC9dZXTcEmh8Sp1cFGID1Fm12120LEJryZn3jj1Fs3 Bibw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=5aSldgrUNSK5XytyDzCE2r6IPKJFqEPbYobzHqmxrgk=; b=NugZj8LPHtUaYEJFeUFw6Nm9mEMeyOIcK5xkFL1NfGlt8jdWmqSf5TpGQFRATqfDHe rExw54UMNAmg6CsuUK7buIL0jaLwRSfEGPBniC/Ino1FJnPin3RFVwdb0W8RXazB5OWW 288IbfUNNGQ8gtGwFUGPE2UWh5DIO15HkqPJdWd2l1uWhDaVLs5dij0A8IS0kcmvMiY4 6dOxE/k8DVdOreafFb08awaL5HANiOrOdBqOVIYqm41ND1ec9KV+iiiLXeEhtL7/VUKe iPSJqu9955brQCHOgTuuN29ILKL4VXr3DSqRRi1nYnr8LfWnnBcqaGm62vNdQd+H08Kr 3w9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i86wsPp+; 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 j70si16069723pgd.500.2019.07.15.03.00.31; Mon, 15 Jul 2019 03:00:31 -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=i86wsPp+; 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 S1729700AbfGOKA3 (ORCPT + 29 others); Mon, 15 Jul 2019 06:00:29 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:41516 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729257AbfGOKA3 (ORCPT ); Mon, 15 Jul 2019 06:00:29 -0400 Received: by mail-pg1-f193.google.com with SMTP id q4so7464466pgj.8 for ; Mon, 15 Jul 2019 03:00:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=5aSldgrUNSK5XytyDzCE2r6IPKJFqEPbYobzHqmxrgk=; b=i86wsPp+N/DWz7EWLy/hkz5gmE1W4UcwoI41T3KH2E2Eduip2LoEakJk2Euy51rqBh VcUrlKtSjyMOa5didb9kkNmMPQedYna2CXJILoC6U2QmO/cJhOgda2uuqaO2DvRyQjWX K3XeZeq/tCKRD/kQf/bloKELfHr8dcbuYAb32ur5F8HhGF1SXs0Hi0MgLF5XsgCVWcSL uKfRbztPVzufskCkwhGjpN3VIVdav6jc/HCizJpR0QKdsgwSanKpHDYd/p8/M4Q7mNOE z43phdtSQndFFgwt5646aW5jw/+WaMVKdjtWI8aAJ9sx51pxmW+EFFKB1cBLk0nXoTxT okdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=5aSldgrUNSK5XytyDzCE2r6IPKJFqEPbYobzHqmxrgk=; b=bXxv8cmDP34iuotVPeC8b1yki7DnekCPIEYCaxydTysz96mKd9FtyljvPVITfjeV3f JTP1UVtaBB7FCkrl/PcEnAdPLdrzgk3nlNPr750OuEk59a1wEw+w97xcdHhyuo23CXnD ets65oxjVaVyolI7sDBEhkzfm0rrBqeGqus4Tjy7w+hj5wVSrIbWEOBGugXnHU3HaLig LC7+w8yP9JVnmAULc2RaW6rTmqtNlwataZXT/myjCszzZdQitXi4uFk8r6cnncGSPHxV /4O2RBPlnJdOv31Od+Pa2a3at1Fm2ZrJ0sM7CZNuCJuwpfOKo9SrTtDlEmrCG1AMee8V tigQ== X-Gm-Message-State: APjAAAWq92SQFnPRG5UU3AJ3sC77PA2iwtQpKHZRxdJttax7YunKNKFI cSHBvXJUPb4Ra0LzVXQqSmDZOQ== X-Received: by 2002:a17:90a:3086:: with SMTP id h6mr28866035pjb.14.1563184828689; Mon, 15 Jul 2019 03:00:28 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id e13sm21971842pff.45.2019.07.15.03.00.25 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 15 Jul 2019 03:00:28 -0700 (PDT) From: Baolin Wang To: adrian.hunter@intel.com, ulf.hansson@linaro.org, zhang.lyra@gmail.com, orsonzhai@gmail.com Cc: baolin.wang@linaro.org, vincent.guittot@linaro.org, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] mmc: host: sdhci-sprd: Fix the missing pm_runtime_put_noidle() Date: Mon, 15 Jul 2019 18:00:14 +0800 Message-Id: <7bff392d44bf32e9e762ef6e3b53df0d95c22c91.1563184567.git.baolin.wang@linaro.org> X-Mailer: git-send-email 1.7.9.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/mmc/host/sdhci-sprd.c | 1 + 1 file changed, 1 insertion(+) -- 1.7.9.5 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);