From patchwork Tue Jul 1 03:12:52 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 365862 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-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id AFAF11400B7 for ; Tue, 1 Jul 2014 13:17:31 +1000 (EST) 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 1X1oVl-0000E0-M1; Tue, 01 Jul 2014 03:13:37 +0000 Received: from mail-yh0-x235.google.com ([2607:f8b0:4002:c01::235]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1X1oVi-00006m-Gq for linux-arm-kernel@lists.infradead.org; Tue, 01 Jul 2014 03:13:35 +0000 Received: by mail-yh0-f53.google.com with SMTP id b6so5537462yha.26 for ; Mon, 30 Jun 2014 20:13:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=iNjf/FZgTobKXZPqmfUtklVMHCYDnnL+MUUKHseNkDc=; b=fMATddhISSylgVv3Yu1+4kGHsST6MlJr1c5C3/DQo9KCFdpHNrfkOAPt0iNLhQRGvK 0U1mmmWRE/7CSB7zmi2sgRj0LhO7ooyQIrJlI8hG+jysx2IZ2LMIc0Bs3aZ3iNraiadg 1pfoMq6S2T6aVSXO8RaJIdmSRB9OOZDxUEbe9yuLkTyH21djKFpS7K6HjEcAqqH8w/Ap OxyUr86rd+wjUTifG2bhbEAk0TQ5+KvbWx9uQEHaGASEdl7gQMJhJKSgUsnmLA2Lt634 //2JewrLJfTBArQVJT5JvDqgpFRy+2wTEZquN2iEdkoiQGkhvK26Vj1X72An+SiyDQgI eorA== X-Received: by 10.236.104.231 with SMTP id i67mr9637555yhg.133.1404184392152; Mon, 30 Jun 2014 20:13:12 -0700 (PDT) Received: from localhost.localdomain ([177.194.40.193]) by mx.google.com with ESMTPSA id 68sm25516510yhq.26.2014.06.30.20.13.09 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 30 Jun 2014 20:13:11 -0700 (PDT) From: Fabio Estevam To: shawn.guo@freescale.com Subject: [PATCH] ARM: mx6: Only check for 1.2GHz for mx6quad Date: Tue, 1 Jul 2014 00:12:52 -0300 Message-Id: <1404184372-5321-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.8.3.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140630_201334_623048_78B73F8D X-CRM114-Status: GOOD ( 11.45 ) X-Spam-Score: -0.8 (/) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-0.8 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2607:f8b0:4002:c01:0:0:0:235 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (festevam[at]gmail.com) -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 -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain Cc: Fabio Estevam , Anson.Huang@freescale.com, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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: Fabio Estevam It is only the mx6quad variant that can run up to 1.2GHz, so add the check accordingly. This avoids getting the following warning on a mx6solo: failed to disable 1.2 GHz OPP Signed-off-by: Fabio Estevam --- arch/arm/mach-imx/mach-imx6q.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/mach-imx6q.c b/arch/arm/mach-imx/mach-imx6q.c index e60456d..9b3a233 100644 --- a/arch/arm/mach-imx/mach-imx6q.c +++ b/arch/arm/mach-imx/mach-imx6q.c @@ -320,7 +320,7 @@ static void __init imx6q_opp_check_speed_grading(struct device *cpu_dev) val >>= OCOTP_CFG3_SPEED_SHIFT; val &= 0x3; - if (val != OCOTP_CFG3_SPEED_1P2GHZ) + if ((val != OCOTP_CFG3_SPEED_1P2GHZ) && cpu_is_imx6q()) if (dev_pm_opp_disable(cpu_dev, 1200000000)) pr_warn("failed to disable 1.2 GHz OPP\n"); if (val < OCOTP_CFG3_SPEED_996MHZ)