From patchwork Fri Dec 27 00:44:21 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Bresticker X-Patchwork-Id: 3407761 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 6B4FE9F54A for ; Fri, 27 Dec 2013 00:46:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AF8AA20144 for ; Fri, 27 Dec 2013 00:46:31 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8FA2D20158 for ; Fri, 27 Dec 2013 00:46:29 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VwLYY-0004C4-Tn; Fri, 27 Dec 2013 00:45:39 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VwLYM-00007E-TE; Fri, 27 Dec 2013 00:45:26 +0000 Received: from mail-vc0-f202.google.com ([209.85.220.202]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VwLY7-0008Ub-GN for linux-arm-kernel@lists.infradead.org; Fri, 27 Dec 2013 00:45:12 +0000 Received: by mail-vc0-f202.google.com with SMTP id hu19so497303vcb.1 for ; Thu, 26 Dec 2013 16:44:47 -0800 (PST) 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=gIUbrqGseAa87/c23AMJ8+AnIettwRUZBF/aNnaGuoA=; b=Fgrs9o1v9IH1zEs1uf8TcaMQLiK0gDEdZrYCOVroWmABXNiLar9jFAU1ILejwjKTOl hweFd8uEcPNg+QfUM75KcoLz9DcO0hVMXV3BVHSLqH81lmHidvHC8MBvlSfczgGx3Txx PZNrSclZYpSPbMdp/pSddo0igx3NYFqlKqnR0XSGtcUYZ8k0lDo1zfK7Q5U138pS6R+I ND+QjJSBOCZk+lSy3bnkjGp0CKZvDobFbWOAjm/qPt0nwN01mWE6EjENOZN55rhZ0fkC g+NxTJUAJ7R76LSAIyAqGICx0ViAicpmlCqgx51r7QJcEW0EAPzwTmw4dzYPbhIfKl23 yinA== X-Gm-Message-State: ALoCoQkfzG1W/zrG1Vera1YFQSezPROInBnJBZl1QSV7ZtMz4HZhS/f5wNw+8Li76X2JhYeVrqmdkGwRg+/72L5IwJMCdwGnvoY0SjUDm6AynBWbSSug1LV9IgptY16Kj7+4k95Io6u4fPlYRZZ6PDGRO6cstrf9I6eNQ3eDYQP4w40ok2TKtNj6bcBn/M3mczBqyV812/6KthXxSnA+2rb9URrUWpx9YQ== X-Received: by 10.58.249.208 with SMTP id yw16mr17271622vec.10.1388105087145; Thu, 26 Dec 2013 16:44:47 -0800 (PST) Received: from corp2gmr1-1.hot.corp.google.com (corp2gmr1-1.hot.corp.google.com [172.24.189.92]) by gmr-mx.google.com with ESMTPS id l41si10141073yhi.5.2013.12.26.16.44.47 for (version=TLSv1.1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 26 Dec 2013 16:44:47 -0800 (PST) Received: from abrestic.mtv.corp.google.com (abrestic.mtv.corp.google.com [172.22.72.111]) by corp2gmr1-1.hot.corp.google.com (Postfix) with ESMTP id F11C431C28B; Thu, 26 Dec 2013 16:44:46 -0800 (PST) Received: by abrestic.mtv.corp.google.com (Postfix, from userid 137652) id AC4F4220798; Thu, 26 Dec 2013 16:44:46 -0800 (PST) From: Andrew Bresticker To: Mike Turquette , Stephen Warren Subject: [PATCH 1/7] clk: tegra: Fix PLLP rate table Date: Thu, 26 Dec 2013 16:44:21 -0800 Message-Id: <1388105067-24438-2-git-send-email-abrestic@chromium.org> X-Mailer: git-send-email 1.8.5.1 In-Reply-To: <1388105067-24438-1-git-send-email-abrestic@chromium.org> References: <1388105067-24438-1-git-send-email-abrestic@chromium.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131226_194511_608198_A4A0952F X-CRM114-Status: UNSURE ( 9.30 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -3.2 (---) Cc: Prashant Gaikwad , Gabe Black , Andrew Bresticker , Peter De Schrijver , linux-kernel@vger.kernel.org, Gabe Black , Thierry Reding , linux-tegra@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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=-4.8 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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: Gabe Black This table had settings for 216MHz, but PLLP is (and is supposed to be) configured at 408MHz. If that table is used and PLLP_BASE_OVRRIDE is not set, the kernel will panic in clk_pll_recalc_rate(). Signed-off-by: Gabe Black Signed-off-by: Andrew Bresticker --- drivers/clk/tegra/clk-tegra124.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/clk/tegra/clk-tegra124.c b/drivers/clk/tegra/clk-tegra124.c index aff86b5..28bb238 100644 --- a/drivers/clk/tegra/clk-tegra124.c +++ b/drivers/clk/tegra/clk-tegra124.c @@ -516,11 +516,11 @@ static struct div_nmp pllp_nmp = { }; static struct tegra_clk_pll_freq_table pll_p_freq_table[] = { - {12000000, 216000000, 432, 12, 1, 8}, - {13000000, 216000000, 432, 13, 1, 8}, - {16800000, 216000000, 360, 14, 1, 8}, - {19200000, 216000000, 360, 16, 1, 8}, - {26000000, 216000000, 432, 26, 1, 8}, + {12000000, 408000000, 408, 12, 0, 8}, + {13000000, 408000000, 408, 13, 0, 8}, + {16800000, 408000000, 340, 14, 0, 8}, + {19200000, 408000000, 340, 16, 0, 8}, + {26000000, 408000000, 408, 26, 0, 8}, {0, 0, 0, 0, 0, 0}, };