From patchwork Mon Apr 20 15:02:07 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Haslam X-Patchwork-Id: 6242751 Return-Path: X-Original-To: patchwork-linux-pm@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 57425BF4A6 for ; Mon, 20 Apr 2015 15:02:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 82FC720453 for ; Mon, 20 Apr 2015 15:02:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9670520456 for ; Mon, 20 Apr 2015 15:02:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753491AbbDTPC0 (ORCPT ); Mon, 20 Apr 2015 11:02:26 -0400 Received: from mail-wi0-f180.google.com ([209.85.212.180]:35281 "EHLO mail-wi0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751223AbbDTPCZ (ORCPT ); Mon, 20 Apr 2015 11:02:25 -0400 Received: by widdi4 with SMTP id di4so102988039wid.0 for ; Mon, 20 Apr 2015 08:02:24 -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=3AlH93T4Yzkfc7J/E2QkjOX0qDlOPsFFvK3N7YqJqw4=; b=KB8V8I1ZYRRVptMhc6LgnLMtg89YIKdAhlWRL5pAXNImn+pkexptFK1ufJ1aloSpJg ueoCX+0VstD2nV00REHZjYH0M46yEH7XUwtU8hSIwNJyW+5AEl1OBVrW3EwUfdYWPIxT r3PatrsgIblV9orSNZC8g+mYEsFKrfc0gwTaqQ0/cCoP0CMHZ84/B2qd+nYJu0MBvqZn 2E0Dyt67Jp7GVG7Fxib15seEDFuX6MMc0g6wLx9Hts8xPV6FgfP+eUWEtUp3kiNC1HyV LX51CshFtDZ47MwUTuf+6pGN5JBbhBg08an+IRY/279xal/VWfrtqmo4VQD4MEjsyCVv V5tg== X-Gm-Message-State: ALoCoQmKv8xw8O9TyDemnWT9Ma9fUAkWw3TXxPfyMPPHNMAYK1aG64SgPjz048nrmukiDL0U7WLQ X-Received: by 10.180.101.65 with SMTP id fe1mr25659858wib.22.1429542144451; Mon, 20 Apr 2015 08:02:24 -0700 (PDT) Received: from axelh-ThinkPad-T440s.home (LPoitiers-656-1-62-228.w90-63.abo.wanadoo.fr. [90.63.143.228]) by mx.google.com with ESMTPSA id fm8sm11119190wib.9.2015.04.20.08.02.22 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 20 Apr 2015 08:02:23 -0700 (PDT) From: ahaslam@baylibre.com To: ulf.hansson@linaro.org, khilman@linaro.org, rjw@rjwysocki.net Cc: bcousson@baylibre.com, linux-pm@vger.kernel.org, Axel Haslam Subject: [RFC v3 6/7] ARM: rmobile: pm: Convert to multiple states Date: Mon, 20 Apr 2015 17:02:07 +0200 Message-Id: <1429542128-21021-7-git-send-email-ahaslam@baylibre.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1429542128-21021-1-git-send-email-ahaslam@baylibre.com> References: <1429542128-21021-1-git-send-email-ahaslam@baylibre.com> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_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 From: Axel Haslam The generic power domain framework added structure changes to support multiple intermediate states when powering off a domain. These changes are needed to prevent compilation breaks with the new structures. Signed-off-by: Axel Haslam --- arch/arm/mach-shmobile/pm-rmobile.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-shmobile/pm-rmobile.c b/arch/arm/mach-shmobile/pm-rmobile.c index 9501820..952a054 100644 --- a/arch/arm/mach-shmobile/pm-rmobile.c +++ b/arch/arm/mach-shmobile/pm-rmobile.c @@ -156,8 +156,10 @@ static void rmobile_init_pm_domain(struct rmobile_pm_domain *rmobile_pd) genpd->flags = GENPD_FLAG_PM_CLK; pm_genpd_init(genpd, gov ? : &simple_qos_governor, false); genpd->dev_ops.active_wakeup = rmobile_pd_active_wakeup; - genpd->power_off = rmobile_pd_power_down; - genpd->power_on = rmobile_pd_power_up; + genpd->states[0].power_off = rmobile_pd_power_down; + genpd->states[0].power_on = rmobile_pd_power_up; + genpd->states[0].name = "off"; + genpd->state_count = 1; genpd->attach_dev = rmobile_pd_attach_dev; genpd->detach_dev = rmobile_pd_detach_dev; __rmobile_pd_power_up(rmobile_pd, false);