From patchwork Mon Feb 15 10:10:52 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Haslam X-Patchwork-Id: 8312271 X-Patchwork-Delegate: rjw@sisk.pl 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 86E2BC02AA for ; Mon, 15 Feb 2016 10:11:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8EFDD204AB for ; Mon, 15 Feb 2016 10:11:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B348C20481 for ; Mon, 15 Feb 2016 10:11:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752718AbcBOKLO (ORCPT ); Mon, 15 Feb 2016 05:11:14 -0500 Received: from mail-wm0-f48.google.com ([74.125.82.48]:36176 "EHLO mail-wm0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752713AbcBOKLI (ORCPT ); Mon, 15 Feb 2016 05:11:08 -0500 Received: by mail-wm0-f48.google.com with SMTP id g62so50661450wme.1 for ; Mon, 15 Feb 2016 02:11:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=RJLavqy11dXArJr32oBLF0Rdkvmnm/DK/3e51D2EDBI=; b=rwBWRL5JvpkTjQKd3KiVHKnKxWeTdF8vPwlDNDoMe3BJ5Q0U+hiB/KnqBhnb3KTaYX 5l4RtSJRzAsNu0GsPLth0qiWE1eKi4gLOeayyYF+LXJvLg59pazHYFb+8cBIbgD+/YDI Ue0nEP+L8gJnfCBBR3WiTjfx3EgKc0Hy+cDgkSP7AFY9kCW0/0pSYonYCWy+2oq695dW 4r1NkN5exQyi492dFwBpzvjObfgumqh5gpAiwLNnm5xUbIUAfcEBBToT1NgjwzcTBxY8 3hLY4ABspmb2L9Hzvrx1DVqVasGTw350+rVE1hBz2zLmscxg4MsWkybQDv+Z6kjcxMMM cAuw== 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=RJLavqy11dXArJr32oBLF0Rdkvmnm/DK/3e51D2EDBI=; b=GxspL7t1PP9flnCX86fV02KaqP74+OnV3nxCd4zxXneYvpxpDUVVDi5yIP92aW8lq9 FWkkn95qI3o+TbXxxqfQVNzhMn0NmvAfQc9IrUsAHbNEuPPpNvFeHrsizp/BN3gSBcCl eqolYkCdHy5GUBuvuwHQQvAnT7F/k717oW/cN2y1Itl+bxRRcKZ2NbNsEZm+ty7e7GQ4 9c2GW2CVpqI11b8KN0y2QmlzYjOeUlTlUq1o+tNaYDEOwqsPKOSaG4wmNpL9xllAiMxy VU+YuKFx9dmLBIU9k7DB6r99vc0HLy6YJ1ktJYTsohWScfiF6Zagl9uR+JTUJnvmlDri K6tA== X-Gm-Message-State: AG10YOToYDdNel8Cm+mHBqR8WQxgPvhYFgiXkkO69MABWr2LyvZl2N3brJ3Ka7liaH1CsqQP X-Received: by 10.28.102.69 with SMTP id a66mr8687585wmc.8.1455531067136; Mon, 15 Feb 2016 02:11:07 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id q75sm14991499wmd.6.2016.02.15.02.11.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 15 Feb 2016 02:11:06 -0800 (PST) From: ahaslam@baylibre.com To: ulf.hansson@linaro.org, lina.iyer@linaro.org Cc: khilman@baylibre.com, linux-pm@vger.kernel.org, geert@linux-m68k.org, mtitinger@baylibre.com, rjw@rjwysocki.net, bcousson@baylibre.com, Axel Haslam Subject: [PATCH v12 2/3] ARM: imx6: pm: declare pm domain latency on power_state struct. Date: Mon, 15 Feb 2016 11:10:52 +0100 Message-Id: <1455531053-11291-3-git-send-email-ahaslam@baylibre.com> X-Mailer: git-send-email 2.6.3 In-Reply-To: <1455531053-11291-1-git-send-email-ahaslam@baylibre.com> References: <1455531053-11291-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.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham 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_pm_domain structure uses an array of latencies to be able to declare multiple intermediate states. Declare a single "OFF" state with the default latencies So that the power_off_latency_ns and power_on_latency_ns fields of generic_pm_domain structure can be eventually removed. [Lina: pm_genpd_init() argument changev] Signed-off-by: Lina Iyer Signed-off-by: Axel Haslam --- arch/arm/mach-imx/gpc.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-imx/gpc.c b/arch/arm/mach-imx/gpc.c index cfc696b..fd87205 100644 --- a/arch/arm/mach-imx/gpc.c +++ b/arch/arm/mach-imx/gpc.c @@ -374,8 +374,13 @@ static struct pu_domain imx6q_pu_domain = { .name = "PU", .power_off = imx6q_pm_pu_power_off, .power_on = imx6q_pm_pu_power_on, - .power_off_latency_ns = 25000, - .power_on_latency_ns = 2000000, + .states = { + [0] = { + .power_off_latency_ns = 25000, + .power_on_latency_ns = 2000000, + }, + }, + .state_count = 1, }, };