From patchwork Wed Dec 2 13:08:27 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 57562 Delivered-To: patches@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp2864129lbb; Wed, 2 Dec 2015 05:08:31 -0800 (PST) X-Received: by 10.25.159.130 with SMTP id i124mr2719898lfe.144.1449061711386; Wed, 02 Dec 2015 05:08:31 -0800 (PST) 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 r81si2167426lfd.0.2015.12.02.05.08.31 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Dec 2015 05:08:31 -0800 (PST) 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; 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; dkim=pass header.i=@linaro-org.20150623.gappssmtp.com Received: by lfdl133 with SMTP id l133so49294431lfd.2 for ; Wed, 02 Dec 2015 05:08:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=KUHMcvrfMyQpAYKX19jHF7TDUaklgg9kbu6ZKfECiP4=; b=e5nKA8Imu016Fh91f1WAxWtL7j+K8/3gYsUOp7J06FMcZ3CJ9UNciiBghhLVHDWrD2 DRciBw9vSY5EbSrDNZ2ZD5ta78hnJcmW24Ck8+6Gm7PiMMvBbIKspkNkK2rafQnyEMCP cjOFYUB+67ZdmEMDfmxW+u4QUEbNQRyWZlVbjDfyg6gyw7ze46XgFsRqSGRnsU/y87Z7 pMPOtbEBHc7ga8H8RX4cnO3laXFaCh/S0uQ7GJRBgZMM/T6Nwz093i3U7Sf+qm6/aJqO e0vC8ZkJ4VzHrmkP+A8I2HmZ2ldKka3qqXIYkDouEO4fYpbsLiBHujYCUPN+dFvYxTfF mcPg== 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; bh=KUHMcvrfMyQpAYKX19jHF7TDUaklgg9kbu6ZKfECiP4=; b=O0Lex/5yOe+fecUoVg0mj12IoQ0emiWG3RA+uOM2xLTZLlsIQUruD4PlOFMdey1+Ny X1JgxS4japYK/ZXj4FFSQog82mN0nuqYUh0YoxV2I46uNkCAP/jKp40ousT5bCbD9CGi hLlmM0F6qqBh7t7DOqBTGS0/pQ/aEvW5ig2bfAvTOVzxtfWBsQuTHFVb6PxnZIJo3YZ3 AK4usOoz/owlVkoGMIGf/jNqE9QRGvZ9eoNsAj5wqkkg1raCvdgmXAdFf5o6EpdvKC+i 835k7jzz5fdJdVL66jGzUdkC/dFqTDTF2y8pvSqdh6SXaRE8XFrFpFIedUKee/KvJzL2 appg== X-Gm-Message-State: ALoCoQlm/GdSyG1/5jXXntwWYzaUUNOXxD8Q56DBUOyKWrt8saIw/8WRrytZFPNAuBXAKBGsYORB X-Received: by 10.25.159.130 with SMTP id i124mr2719841lfe.144.1449061711068; Wed, 02 Dec 2015 05:08:31 -0800 (PST) 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 j204sm481715lfd.16.2015.12.02.05.08.29 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 02 Dec 2015 05:08:30 -0800 (PST) From: Ulf Hansson To: "Rafael J. Wysocki" , Kevin Hilman , Ulf Hansson , linux-pm@vger.kernel.org Cc: Len Brown , Pavel Machek , Geert Uytterhoeven , Lina Iyer Subject: [PATCH] PM / Domains: Validate cases of a non-bound driver in genpd governor Date: Wed, 2 Dec 2015 14:08:27 +0100 Message-Id: <1449061707-16030-1-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.9.1 Recently genpd removed the requirement of a having a driver bound for its attached devices to allow genpd to power off. That change should also have removed a corresponding validation in the governor, let's correct that. Fixes: 298cd0f08801 ("PM / Domains: Remove dev->driver check for runtime") Signed-off-by: Ulf Hansson --- drivers/base/power/domain_governor.c | 3 --- 1 file changed, 3 deletions(-) -- 1.9.1 diff --git a/drivers/base/power/domain_governor.c b/drivers/base/power/domain_governor.c index e60dd12..1e937ac 100644 --- a/drivers/base/power/domain_governor.c +++ b/drivers/base/power/domain_governor.c @@ -160,9 +160,6 @@ static bool default_power_down_ok(struct dev_pm_domain *pd) struct gpd_timing_data *td; s64 constraint_ns; - if (!pdd->dev->driver) - continue; - /* * Check if the device is allowed to be off long enough for the * domain to turn off and on (that's how much time it will