From patchwork Tue Mar 29 07:31:11 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 64578 Delivered-To: patches@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp1854009lbc; Tue, 29 Mar 2016 00:31:39 -0700 (PDT) X-Received: by 10.25.85.145 with SMTP id j139mr373740lfb.131.1459236690115; Tue, 29 Mar 2016 00:31:30 -0700 (PDT) Return-Path: Received: from mail-lf0-x22a.google.com (mail-lf0-x22a.google.com. [2a00:1450:4010:c07::22a]) by mx.google.com with ESMTPS id c188si16132359lfc.85.2016.03.29.00.31.30 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 Mar 2016 00:31:30 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:4010:c07::22a as permitted sender) client-ip=2a00:1450:4010:c07::22a; 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::22a as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org Received: by mail-lf0-x22a.google.com with SMTP id k79so5261559lfb.2 for ; Tue, 29 Mar 2016 00:31:30 -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=bpnks+GOtf1zMhXAVvx4HDfpDl4pSmB0yRhwFR5ON4w=; b=ilhkTRjEqqo98GY3VeE3srxkmfT2padNucw1yDsqWbt7wGqhiWIhwD/BPU+G4NoS8+ ToWq6xR0YIya/yIS83tTK35OEhBbuXNZTroxXlu9A/JuwyCPEo3cK5oKcEMf1jlaokMh SbBeS/86IUssrl1DnnmpMX3RH/lmO9B6/XKxk= 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=bpnks+GOtf1zMhXAVvx4HDfpDl4pSmB0yRhwFR5ON4w=; b=MJjfFzQ7fXOfUVKde+fEecELXg47J0Ns7wCETshSe52Ezqs+wU5ryoLzwOueIKXu0I 1spoUYEyFMGyLHGPmQroA1G1mUbx8KzxIdK3dicehNeunGEK/kJTpZzrzvu33jr+F26p ZY2xmBGlIpS43XbZUNbPgTv5Yk1/fBgj48FA49kP/NnyuMDFxXEdIuDShphTnErh+aVY 6kvio7ckyNOItZHPxMoaXDqVw8pk5s3xBxqg/sEspVdzdnpcvanvZzJY/pxZ4TNtsB7z PVeZ4FG67zMRDGsTeCmjIoaJSyjvScP3Y8UBLHqMYP4oDtgnJTieuCLadwVy075qQiJq Nh0Q== X-Gm-Message-State: AD7BkJJkuJTIQS5ADvphR7LcnO4WVXtxwt02e8YS25OQ6aYA75sFwH8N/0hoNzkPr9ew6Thqxyw= X-Received: by 10.25.138.7 with SMTP id m7mr386968lfd.109.1459236689973; Tue, 29 Mar 2016 00:31:29 -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.28 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 29 Mar 2016 00:31:28 -0700 (PDT) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Ulf Hansson Cc: Adrian Hunter Subject: [PATCH 6/8] mmc: sdhci-pci: Remove redundant runtime PM calls Date: Tue, 29 Mar 2016 09:31:11 +0200 Message-Id: <1459236673-5639-6-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-pci-core.c | 5 ----- 1 file changed, 5 deletions(-) -- 1.9.1 diff --git a/drivers/mmc/host/sdhci-pci-core.c b/drivers/mmc/host/sdhci-pci-core.c index 62aa5d0..8dfe721 100644 --- a/drivers/mmc/host/sdhci-pci-core.c +++ b/drivers/mmc/host/sdhci-pci-core.c @@ -340,8 +340,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) @@ -351,9 +349,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; }