From patchwork Wed Nov 18 14:57:36 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lina Iyer X-Patchwork-Id: 7650481 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 C7672BF90C for ; Wed, 18 Nov 2015 15:00:36 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0A211205FF for ; Wed, 18 Nov 2015 15:00:35 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 604B8204AD for ; Wed, 18 Nov 2015 15:00:29 +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 1Zz4BT-00054D-Sx; Wed, 18 Nov 2015 14:58:07 +0000 Received: from mail-pa0-x231.google.com ([2607:f8b0:400e:c03::231]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zz4BR-00051q-9Y for linux-arm-kernel@lists.infradead.org; Wed, 18 Nov 2015 14:58:05 +0000 Received: by pacdm15 with SMTP id dm15so47235697pac.3 for ; Wed, 18 Nov 2015 06:57:43 -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:in-reply-to:references; bh=ZHYGBZhgaykePNppjB5yZTP5E2g5fnY3lw1wgY56NCA=; b=azDDiWntSffUKvcn8KgQYuQtbC9R3KyXaV1pNBY605h2x1iZirX5TYCZK6t/AVQDzU rnySkhR6y6HzUHrY2tV5EsTl0xkVQXTu5w74KZwR9L4dWO3eWTtpe95yd1pyJVCfab07 BfSCnzPstnRJLEsVYi02kd3fZPY47Ry+vl5RB1aw+h0h9qemxajm/MffuHpKeSWfXr7Y U2DySggZKzMkW5vxxXsToGnB47PwHpknJbQ4/sE7GUGATScUG9H9VTS1XhY8ouFZO7qd /XSAwOO2dWM5bcy68lLeSpiunPBsoSFrr3+oBrsoEEIXPD143qHkPHsbqPDGBeN1ciK0 ArCQ== 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=ZHYGBZhgaykePNppjB5yZTP5E2g5fnY3lw1wgY56NCA=; b=QRcUfBmh1ZxnJZNzQA1ycV0GyftDMIyoJrNNSj6aqo488S7q6bZ6xpTgL0UBXuQPHJ CYNl+PkutDgafbGjihQ3UoW++pVZTO64ruXfp0HvCWGaY6lKvZkgV36kc1nndj8/7sRy 4Za0XD+4JW1v1KVZShykKnru10ONj6id91C6rPOyXfu2qPoqh+F1Z15XwUSrEaHQ8bFw rh//nu9RooAOVBrFPjiw/Gndd4895ngIh8WyxjVRySs/6AgMBIRssi2K0O5jQXjIggrf ff1svjHlvhQoRkMy+9ByMTPcTPwm8blsWQ9jaGi4tC3Ll8i6lSewDhCuuVTsHFdvlxRa PvaA== X-Gm-Message-State: ALoCoQksaV8cbM/KW+XIWIuY1EhxJ/Rzge/nz4ALwtbR1iuMzvutl/ed7shUNAgn5gSWRuQIueFb X-Received: by 10.68.231.168 with SMTP id th8mr2700492pbc.22.1447858663509; Wed, 18 Nov 2015 06:57:43 -0800 (PST) Received: from ubuntu.localdomain ([8.42.77.226]) by smtp.gmail.com with ESMTPSA id bd10sm4816942pbd.29.2015.11.18.06.57.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 18 Nov 2015 06:57:41 -0800 (PST) From: Lina Iyer To: linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org Subject: [PATCH] ARM: imx6: pm: declare pm domain latency on power_state struct. Date: Wed, 18 Nov 2015 07:57:36 -0700 Message-Id: <1447858656-62464-1-git-send-email-lina.iyer@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1447799871-56374-6-git-send-email-lina.iyer@linaro.org> References: <1447799871-56374-6-git-send-email-lina.iyer@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151118_065805_385725_7EE978E0 X-CRM114-Status: GOOD ( 11.88 ) X-Spam-Score: -0.1 (/) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Axel Haslam , linux-arm-msm@vger.kernel.org, Lina Iyer 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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,SUSPICIOUS_RECIPS,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 eventualy removed. Signed-off-by: Axel Haslam Signed-off-by: Lina Iyer [Lina: pm_genpd_init() argument change] --- arch/arm/mach-imx/gpc.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-imx/gpc.c b/arch/arm/mach-imx/gpc.c index 8e7976a..b070e06 100644 --- a/arch/arm/mach-imx/gpc.c +++ b/arch/arm/mach-imx/gpc.c @@ -368,13 +368,23 @@ static struct generic_pm_domain imx6q_arm_domain = { .name = "ARM", }; +static struct genpd_power_state imx6q_arm_domain_states[] = { + { + .name = "OFF", + .power_off_latency_ns = 25000, + .power_on_latency_ns = 2000000, + }, +}; + static struct pu_domain imx6q_pu_domain = { .base = { .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, + .gov = NULL, + .status = GPD_STATE_POWER_OFF, + .states = imx6q_arm_domain_states, + .state_count = ARRAY_SIZE(imx6q_arm_domain_states), }, };