From patchwork Sat Jun 27 03:02:22 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lina Iyer X-Patchwork-Id: 50385 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f200.google.com (mail-wi0-f200.google.com [209.85.212.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 91ACB228FD for ; Sat, 27 Jun 2015 03:02:58 +0000 (UTC) Received: by wiea6 with SMTP id a6sf9791220wie.1 for ; Fri, 26 Jun 2015 20:02:57 -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=6QyYiyXy1AqN9GljBMmLEhnZyyyjPp/8uTctXpGBudc=; b=TBdY21kOQvzdCsMKGOY/CY6Mp68t3sCiMQrIXApFcGguiydxofVe/v07UUKSpxpq3o ZQxJoGq1GV4PdEDtVulMNBksNUVHa2HylBc/vRLZ+i22eC3GGivQbqQzCX24M7/8zi1E b3m2tnWQTNv+eAd8wNjrG/50u16lRMjFNPKoWeWLzq5+CjfKhootTUsmn12SHpjVLkOI raIYQ9Lg+3clYZw1ht3qDmLKyFIvlDZUe0F5O450TNMP2SRktb6HH2yBbTso6lpEPEmH dLDDlXy+RpjMUtwccwspzMe3SPy9p9RJvLBBys9hxEjtJcBnKLZcOt15QgFry56pMjJc FFyg== X-Gm-Message-State: ALoCoQniTrQpJMSzB1oMEWIdinlLc9yR95lAOtGYsoj3cnifOHVSUooNdf9kus0RBVUrkIdF4pmb X-Received: by 10.112.9.100 with SMTP id y4mr3252304lba.20.1435374177818; Fri, 26 Jun 2015 20:02:57 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.164.195 with SMTP id ys3ls279495lab.13.gmail; Fri, 26 Jun 2015 20:02:57 -0700 (PDT) X-Received: by 10.112.16.227 with SMTP id j3mr4289860lbd.43.1435374177224; Fri, 26 Jun 2015 20:02:57 -0700 (PDT) Received: from mail-la0-f46.google.com (mail-la0-f46.google.com. [209.85.215.46]) by mx.google.com with ESMTPS id ce5si11891527lbd.151.2015.06.26.20.02.56 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Jun 2015 20:02:56 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.46 as permitted sender) client-ip=209.85.215.46; Received: by lagh6 with SMTP id h6so2714656lag.2 for ; Fri, 26 Jun 2015 20:02:56 -0700 (PDT) X-Received: by 10.112.199.133 with SMTP id jk5mr4445562lbc.32.1435374176618; Fri, 26 Jun 2015 20:02:56 -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.108.230 with SMTP id hn6csp295124lbb; Fri, 26 Jun 2015 20:02:55 -0700 (PDT) X-Received: by 10.68.134.226 with SMTP id pn2mr9307321pbb.86.1435374171796; Fri, 26 Jun 2015 20:02:51 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g6si51225212pat.122.2015.06.26.20.02.50; Fri, 26 Jun 2015 20:02:51 -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 S1752019AbbF0DCs (ORCPT + 11 others); Fri, 26 Jun 2015 23:02:48 -0400 Received: from mail-pd0-f169.google.com ([209.85.192.169]:33571 "EHLO mail-pd0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751931AbbF0DCr (ORCPT ); Fri, 26 Jun 2015 23:02:47 -0400 Received: by pdjn11 with SMTP id n11so84889737pdj.0 for ; Fri, 26 Jun 2015 20:02:46 -0700 (PDT) X-Received: by 10.68.169.34 with SMTP id ab2mr9157839pbc.120.1435374166676; Fri, 26 Jun 2015 20:02:46 -0700 (PDT) Received: from ubuntu.localdomain (c-24-8-37-141.hsd1.co.comcast.net. [24.8.37.141]) by mx.google.com with ESMTPSA id j7sm34787756pdp.83.2015.06.26.20.02.45 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 26 Jun 2015 20:02:46 -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, Lina Iyer Subject: [PATCH RFC v2 02/16] PM / Domains: Remove dev->driver check for runtime PM Date: Fri, 26 Jun 2015 21:02:22 -0600 Message-Id: <1435374156-19214-3-git-send-email-lina.iyer@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1435374156-19214-1-git-send-email-lina.iyer@linaro.org> References: <1435374156-19214-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.46 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. Signed-off-by: Kevin Hilman Signed-off-by: Lina Iyer --- 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 44af889..e9b7cfb 100644 --- a/drivers/base/power/domain.c +++ b/drivers/base/power/domain.c @@ -391,8 +391,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++; }