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: 6684551 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 4FBD8C05AE for ; Sat, 27 Jun 2015 03:07:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 86EA520553 for ; Sat, 27 Jun 2015 03:07:01 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A9ABC20561 for ; Sat, 27 Jun 2015 03:06:59 +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 1Z8gP6-00074A-1z; Sat, 27 Jun 2015 03:03:40 +0000 Received: from mail-pd0-f171.google.com ([209.85.192.171]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z8gOZ-0006vA-Oz for linux-arm-kernel@lists.infradead.org; Sat, 27 Jun 2015 03:03:08 +0000 Received: by pdbci14 with SMTP id ci14so84808628pdb.2 for ; Fri, 26 Jun 2015 20:02:46 -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=JJV9fHFWDQs2fEVvP7QXPzuB7Jq6/7/uSOGG6XnLY9M=; b=TuCl0g201o2W41dGA1KtAbWJRJLqvdfhMplLF2FwoDcIUfi+mu9ydTlz4Qn7nJFs4h GzSokvBRE5wcwueuuPA/lGgn3aWF7QX1hp1PyNG+e835oE1c41g4fmdoULGoobDNaV4F WazlhBPKDHKj5/i2XetTnHmRNO/0feDP/0QvXqUZ/WpKBIMbGK0DLxuIEwytC7veI5fJ CnXZwNCuVvNvomE9IJZNKisfRs/macfnIj5dZvXBTTyJKguavMz1MedDs9nf451+6KyH FBtZmRNJvtpHYLBbJUwj2DKQRfWemVmDmXm/xFnzHEliB15MFRzRdklAtiOanoXIXo60 fd5g== X-Gm-Message-State: ALoCoQkxLnMjpMWUD9Z10cJyhINuXsNeU0yemdbfpQ68FWdJMqXbceuishmi9jDNwhRlQSZMkjtO 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150626_200307_858567_586E5FF5 X-CRM114-Status: GOOD ( 10.83 ) X-Spam-Score: -2.6 (--) Cc: k.kozlowski@samsung.com, linux-pm@vger.kernel.org, msivasub@codeaurora.org, geert@linux-m68k.org, Lina Iyer , agross@codeaurora.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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=-5.6 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. Signed-off-by: Kevin Hilman Signed-off-by: Lina Iyer Reviewed-by: Krzysztof Kozlowski --- 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++; }