From patchwork Tue Mar 29 07:31:10 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 64577 Delivered-To: patches@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp1853988lbc; Tue, 29 Mar 2016 00:31:37 -0700 (PDT) X-Received: by 10.25.40.210 with SMTP id o201mr331921lfo.44.1459236688682; Tue, 29 Mar 2016 00:31:28 -0700 (PDT) Return-Path: Received: from mail-lf0-x231.google.com (mail-lf0-x231.google.com. [2a00:1450:4010:c07::231]) by mx.google.com with ESMTPS id pp3si16097722lbc.181.2016.03.29.00.31.28 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 Mar 2016 00:31:28 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:4010:c07::231 as permitted sender) client-ip=2a00:1450:4010:c07::231; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:4010:c07::231 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org Received: by mail-lf0-x231.google.com with SMTP id c62so5271851lfc.1 for ; Tue, 29 Mar 2016 00:31:28 -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:in-reply-to:references; bh=RdUOWR0kDIb4exvJ2v6qG/tSmShfrpecdb4kFgIH/yo=; b=gLXtqX7i0yYTqy9gV8jqdbB4jagwq84toi+ZYkOXrGhCBGP7eYP7zjmblixLRKzREa 8Sm/zBj5etUYhdc/FC+nyohcqt2eQgzceC7oTZzHWjdyFToNeFU+42/CSEXAywwTT/oY Y08Zd+87vu6Nfq+XYXifHPzBo2pqVVaMGfww0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=RdUOWR0kDIb4exvJ2v6qG/tSmShfrpecdb4kFgIH/yo=; b=YaI4+lysfKvzswZK5Zz6m0Uhj7vyMCrr+ZqzX42Ne7WWFJBfjZoj5z+lIO+mRLBPkj g3DFQotTEeq3KlwdYwtrFkYbzStjy5s0grWNhZJhRMhwiGffdJ/a0BSUf+YwOvnOT3Kp B0og5LWcHqPvB8IQuzm7LuS0khj6HOOZxYuaf5LrvPxrayNzNQ5o8cO9oSHcehvmJndg xzT+sxEQAFYVuapRqGH4cMdCLFMQukiO9LoL+Y8o6QGI4gRUO8enF4wQmMce0qZWzzVv ASRMPQMSt1h36HOloKqTRuWC4jdeJIXDangFYLVv173Nc7xWDGf3fYpEk/4hhUFG/9ub cUGQ== X-Gm-Message-State: AD7BkJKWL44lL6kFKy17u+fU3RoaKNU30+MmVFhgpwTNXGupxy9gunZ9wXBA0+wEc5tWCTngvAA= X-Received: by 10.25.20.222 with SMTP id 91mr418784lfu.100.1459236688546; Tue, 29 Mar 2016 00:31:28 -0700 (PDT) Return-Path: Received: from localhost.localdomain (c-83-233-167-104.cust.bredband2.com. [83.233.167.104]) by smtp.gmail.com with ESMTPSA id qh4sm5033100lbb.43.2016.03.29.00.31.27 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 29 Mar 2016 00:31:27 -0700 (PDT) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Ulf Hansson Cc: Adrian Hunter Subject: [PATCH 5/8] mmc: sdhci-acpi: Remove redundant runtime PM calls Date: Tue, 29 Mar 2016 09:31:10 +0200 Message-Id: <1459236673-5639-5-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1459236673-5639-1-git-send-email-ulf.hansson@linaro.org> References: <1459236673-5639-1-git-send-email-ulf.hansson@linaro.org> Commit 9250aea76bfc ("mmc: core: Enable runtime PM management of host devices"), made some calls to the runtime PM API from the driver redundant. Especially those which deals with runtime PM reference counting, so let's remove them. Cc: Adrian Hunter Signed-off-by: Ulf Hansson --- drivers/mmc/host/sdhci-acpi.c | 5 ----- 1 file changed, 5 deletions(-) -- 1.9.1 diff --git a/drivers/mmc/host/sdhci-acpi.c b/drivers/mmc/host/sdhci-acpi.c index 6839e41..1ed8ea6 100644 --- a/drivers/mmc/host/sdhci-acpi.c +++ b/drivers/mmc/host/sdhci-acpi.c @@ -126,8 +126,6 @@ static int bxt_get_cd(struct mmc_host *mmc) if (!gpio_cd) return 0; - pm_runtime_get_sync(mmc->parent); - spin_lock_irqsave(&host->lock, flags); if (host->flags & SDHCI_DEVICE_DEAD) @@ -137,9 +135,6 @@ static int bxt_get_cd(struct mmc_host *mmc) out: spin_unlock_irqrestore(&host->lock, flags); - pm_runtime_mark_last_busy(mmc->parent); - pm_runtime_put_autosuspend(mmc->parent); - return ret; }