From patchwork Wed May 21 14:47:50 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Wang, Jiada" X-Patchwork-Id: 4217461 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 A02599F1CD for ; Wed, 21 May 2014 14:50:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C6C7220381 for ; Wed, 21 May 2014 14:50:42 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (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 08F482037E for ; Wed, 21 May 2014 14:50:42 +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 1Wn7oJ-0001FG-BT; Wed, 21 May 2014 14:48:03 +0000 Received: from relay1.mentorg.com ([192.94.38.131]) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Wn7oH-0001Cg-63 for linux-arm-kernel@lists.infradead.org; Wed, 21 May 2014 14:48:01 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1Wn7np-0004hO-SL from Jiada_Wang@mentor.com ; Wed, 21 May 2014 07:47:33 -0700 Received: from NA1-MAIL.mgc.mentorg.com ([147.34.98.181]) by svr-orw-fem-01.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Wed, 21 May 2014 07:47:33 -0700 Received: from sb-ubuntu-1204-64bit.alm.mentorg.com ([134.86.97.10]) by NA1-MAIL.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 21 May 2014 07:47:33 -0700 From: jiada_wang@mentor.com To: shawn.guo@freescale.com, kernel@pengutronix.de, linux@arm.linux.org.uk, festevam@gmail.com, dirk.behme@de.bosch.com Subject: [PATCH 1/2] ARM: imx: unset pllv3 BYPASS and POWER sequentially Date: Wed, 21 May 2014 07:47:50 -0700 Message-Id: <1400683671-19132-2-git-send-email-jiada_wang@mentor.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1400683671-19132-1-git-send-email-jiada_wang@mentor.com> References: <1400683671-19132-1-git-send-email-jiada_wang@mentor.com> X-OriginalArrivalTime: 21 May 2014 14:47:33.0321 (UTC) FILETIME=[993BAB90:01CF7503] X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140521_074801_245414_A6DBD91C X-CRM114-Status: UNSURE ( 8.58 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.0 (/) Cc: 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=-2.5 required=5.0 tests=BAYES_00,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: Dirk Behme Currently, POWER and BYPASS bits are set up in a single write to pllv3 register. With commit 43c9b9e8a4c6 ("ARM: imx: set up pllv3 POWER and BYPASS sequentially") this has been changed in the prepare() function. Do the same for the unprepare(). Signed-off-by: Dirk Behme --- arch/arm/mach-imx/clk-pllv3.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-imx/clk-pllv3.c b/arch/arm/mach-imx/clk-pllv3.c index 6136405..36f2396 100644 --- a/arch/arm/mach-imx/clk-pllv3.c +++ b/arch/arm/mach-imx/clk-pllv3.c @@ -98,6 +98,8 @@ static void clk_pllv3_unprepare(struct clk_hw *hw) val = readl_relaxed(pll->base); val |= BM_PLL_BYPASS; + writel_relaxed(val, pll->base); + if (pll->powerup_set) val &= ~BM_PLL_POWER; else