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: 51931 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by patches.linaro.org (Postfix) with ESMTPS id 966B2229FD for ; Tue, 4 Aug 2015 23:36:16 +0000 (UTC) Received: by labby2 with SMTP id by2sf9013995lab.3 for ; Tue, 04 Aug 2015 16:36:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=8walG8EMTI2TVzuRCwx8M85jWOkDHhWefGgVDq5X0Qo=; b=a/EoJWdV9pri3enpqMAqDsAKNDp/Cd2nOLVwh0on6ixf5s7/gfE/ak8UmvvaTA3bYu h38oF7ulCode/CVqDNNItGUW6dbSA7+nSPc9ZWNfKc7R/p65a2EVyse0sOl7G26ru8mQ cmhHbVVdtvMa77PMPt/P1on8r8olWMG50yraTMZza17TYoOGJiel6l8XLIrDapvUZ4VL HD5NABpEcRL6KVP7h9FsV7BUUJGtzqxF9C4wsPwsRktsYDu0dnTSho4NwxjLPUi0Utpo z7OlYUGLc2fBC63YjHE4kr6u7oy/qCsuJQr3XfGVg05kVGBjXdBslRNUfQB0rJ053OC8 H4Ag== X-Gm-Message-State: ALoCoQm4VPh1ZMLNqTPizSQ0U17JOGNm7wXHuu5ew/5j9//kLlnj/UsVIqzVusnzC9xafjT2Pc1J X-Received: by 10.180.79.10 with SMTP id f10mr526661wix.3.1438731375433; Tue, 04 Aug 2015 16:36:15 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.44.197 with SMTP id g5ls116935lam.99.gmail; Tue, 04 Aug 2015 16:36:15 -0700 (PDT) X-Received: by 10.112.47.73 with SMTP id b9mr6815648lbn.46.1438731375269; Tue, 04 Aug 2015 16:36:15 -0700 (PDT) Received: from mail-la0-f42.google.com (mail-la0-f42.google.com. [209.85.215.42]) by mx.google.com with ESMTPS id yp3si953537lbb.43.2015.08.04.16.36.14 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Aug 2015 16:36:14 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) client-ip=209.85.215.42; Received: by labgo9 with SMTP id go9so17659446lab.3 for ; Tue, 04 Aug 2015 16:36:14 -0700 (PDT) X-Received: by 10.152.9.66 with SMTP id x2mr6248889laa.76.1438731374489; Tue, 04 Aug 2015 16:36:14 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.7.198 with SMTP id l6csp50389lba; Tue, 4 Aug 2015 16:36:12 -0700 (PDT) X-Received: by 10.66.221.138 with SMTP id qe10mr12708459pac.45.1438731370552; Tue, 04 Aug 2015 16:36:10 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id mi8si1794926pdb.134.2015.08.04.16.36.09; Tue, 04 Aug 2015 16:36:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754669AbbHDXgI (ORCPT + 12 others); Tue, 4 Aug 2015 19:36:08 -0400 Received: from mail-pa0-f50.google.com ([209.85.220.50]:35688 "EHLO mail-pa0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754663AbbHDXgH (ORCPT ); Tue, 4 Aug 2015 19:36:07 -0400 Received: by pabxd6 with SMTP id xd6so2466215pab.2 for ; Tue, 04 Aug 2015 16:36:07 -0700 (PDT) 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 Cc: geert@linux-m68k.org, k.kozlowski@samsung.com, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, msivasub@codeaurora.org, agross@codeaurora.org, sboyd@codeaurora.org, Lina Iyer 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> Sender: linux-pm-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: lina.iyer@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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++; }