From patchwork Tue Aug 4 23:35:32 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lina Iyer X-Patchwork-Id: 6945221 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E9FE69F38B for ; Tue, 4 Aug 2015 23:39:15 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3220B2056E for ; Tue, 4 Aug 2015 23:39:15 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 57B2E203DC for ; Tue, 4 Aug 2015 23:39:14 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZMllJ-0006GI-Fh; Tue, 04 Aug 2015 23:36:49 +0000 Received: from mail-pa0-f50.google.com ([209.85.220.50]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZMll0-00063A-0I for linux-arm-kernel@lists.infradead.org; Tue, 04 Aug 2015 23:36:31 +0000 Received: by padck2 with SMTP id ck2so19882906pad.0 for ; Tue, 04 Aug 2015 16:36:09 -0700 (PDT) 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=OwDcTLGkWpA+sjaDHC4T1E6E9KtTzn3/KVxdZnmumhc=; b=NmUCTuIjVhNSyCDFnn/PkItuU79lr2JcUViiN+fbaT0PXLzB9b01PCnTrzmssblDbS MPHnmQLxKjXeN+FkzlIA1mdDdyivdsrDggYsx3UfatKR0H6raGEj4MfmuQgTCwdeOZF9 LGaAl0Luw+OvdmAT5btGJ5wGAG11cjl59LZHIVC3oCboQnPOmBvwzMPpNz3r/0kGy/eQ wjZdq2TXKTL5Hz1XDlXkpfspvoFN1d+IsdDga7HNUx8hzuMpU9Q1yh24Z50wc3VquR0M ui10IToixQy9hjV8DoU+dyTzuB76zdNbJC8MQFWMgmJUvtRI3l4WezB4bajIAgwsEC9A FGPw== X-Gm-Message-State: ALoCoQmR5+5ucRZzUo75sLGXP6CEJQYuqzKl+IY/nWIodWr/zYEkoVnVPpnW9T12TfODDrEN7ZbE X-Received: by 10.66.185.225 with SMTP id ff1mr13330656pac.154.1438731367189; Tue, 04 Aug 2015 16:36:07 -0700 (PDT) Received: from ubuntu.localdomain (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id to5sm527525pac.33.2015.08.04.16.36.05 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 04 Aug 2015 16:36:06 -0700 (PDT) From: Lina Iyer To: rjw@rjwysocki.net, ulf.hansson@linaro.org, khilman@linaro.org Subject: [PATCH 2/9] PM / Domains: Remove dev->driver check for runtime PM Date: Tue, 4 Aug 2015 17:35:32 -0600 Message-Id: <1438731339-58317-3-git-send-email-lina.iyer@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1438731339-58317-1-git-send-email-lina.iyer@linaro.org> References: <1438731339-58317-1-git-send-email-lina.iyer@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150804_163630_151659_B402EF93 X-CRM114-Status: GOOD ( 11.84 ) X-Spam-Score: -2.6 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: k.kozlowski@samsung.com, linux-pm@vger.kernel.org, sboyd@codeaurora.org, msivasub@codeaurora.org, geert@linux-m68k.org, Lina Iyer , agross@codeaurora.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Remove check for driver of a device, for runtime PM. Device may be suspended without an explicit driver. This check seems to be vestigial and incorrect in the current context. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Kevin Hilman Signed-off-by: Lina Iyer Acked-by: Ulf Hansson --- drivers/base/power/domain.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c index 5fd1306..ef8d19f 100644 --- a/drivers/base/power/domain.c +++ b/drivers/base/power/domain.c @@ -394,8 +394,7 @@ static int pm_genpd_poweroff(struct generic_pm_domain *genpd) if (stat > PM_QOS_FLAGS_NONE) return -EBUSY; - if (pdd->dev->driver && (!pm_runtime_suspended(pdd->dev) - || pdd->dev->power.irq_safe)) + if (!pm_runtime_suspended(pdd->dev) || pdd->dev->power.irq_safe) not_suspended++; }