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: 546072 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2001:1868:205::9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 76C6514141C for ; Thu, 19 Nov 2015 02:00:41 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=linaro-org.20150623.gappssmtp.com header.i=@linaro-org.20150623.gappssmtp.com header.b=azDDiWnt; dkim-atps=neutral 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-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2607:f8b0:400e:c03:0:0:0:231 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 2.5 SUSPICIOUS_RECIPS Similar addresses in recipient list -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list 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+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org 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), }, };