From patchwork Thu Dec 12 16:18:01 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Figa X-Patchwork-Id: 3333121 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.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id C6B8AC0D4A for ; Thu, 12 Dec 2013 16:21:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 451EA20667 for ; Thu, 12 Dec 2013 16:20:58 +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 BDC2220614 for ; Thu, 12 Dec 2013 16:20:52 +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 1Vr8zD-0007Fk-TT; Thu, 12 Dec 2013 16:19:40 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vr8yu-0001jY-QD; Thu, 12 Dec 2013 16:19:20 +0000 Received: from mailout2.w1.samsung.com ([210.118.77.12]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vr8yR-0001gY-85 for linux-arm-kernel@lists.infradead.org; Thu, 12 Dec 2013 16:18:52 +0000 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout2.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MXP008P9BYQIG60@mailout2.w1.samsung.com> for linux-arm-kernel@lists.infradead.org; Thu, 12 Dec 2013 16:18:26 +0000 (GMT) X-AuditID: cbfec7f4-b7f966d0000003d9-d4-52a9e1d2bf8c Received: from eusync2.samsung.com ( [203.254.199.212]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 97.ED.00985.2D1E9A25; Thu, 12 Dec 2013 16:18:26 +0000 (GMT) Received: from amdc1227.digital.local ([106.116.147.199]) by eusync2.samsung.com (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0MXP00GA1BYIPS70@eusync2.samsung.com>; Thu, 12 Dec 2013 16:18:26 +0000 (GMT) From: Tomasz Figa To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/3] clk: samsung: exynos4: Fix definition of div_mmc_pre4 divider Date: Thu, 12 Dec 2013 17:18:01 +0100 Message-id: <1386865083-20082-2-git-send-email-t.figa@samsung.com> X-Mailer: git-send-email 1.8.4.3 In-reply-to: <1386865083-20082-1-git-send-email-t.figa@samsung.com> References: <1386865083-20082-1-git-send-email-t.figa@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprMLMWRmVeSWpSXmKPExsVy+t/xK7qXHq4MMtj7WM3i76Rj7Ba9C66y WZxtesNusenxNVaLGef3MVk8nXCRzeLU9c9sFofftLNavDrYxmKxfsZrFotjM5YwOnB7/P41 idHjzrU9bB6bl9R7XDnRxOrRt2UVo8fnTXIeG+eGBrBHcdmkpOZklqUW6dslcGX0373AXNDP WbFtWS9rA+Mr9i5GTg4JAROJ7ml7GSFsMYkL99azdTFycQgJLGWUOPNgMyuE08ck8XtqDytI FZuAmsTnhkdsILaIgIbElK7H7CBFzALdzBLfOm+zgCSEBUIk9qxrBGtgEVCV+PjuGBOIzSvg JNG4oh9qnYJE55r/YDangLPE8avfwHqFgGouPDvAOIGRdwEjwypG0dTS5ILipPRcQ73ixNzi 0rx0veT83E2MkID8soNx8TGrQ4wCHIxKPLwvDq4IEmJNLCuuzD3EKMHBrCTCe2/LyiAh3pTE yqrUovz4otKc1OJDjEwcnFINjFl8+9RjWLVeV9c37eBmFd40oy9y7RbriYvazham3Jw6mWv9 +6m3d57eKxBSbzGT/+UJbs6VngULzuv6pe/Z+kUifvW+2bZeBZVRG3T93mx74iK1QefDOg/t 6UtPm0hMnV75xWD68x0nHL8r/nn8NV39wpEF94NuL3t780hVwhWRLyqX5Vc32RxQYinOSDTU Yi4qTgQA2YCXzyYCAAA= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131212_111851_492325_A2EFAB58 X-CRM114-Status: UNSURE ( 6.96 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -6.9 (------) Cc: linux-samsung-soc@vger.kernel.org, Mike Turquette , Arnd Bergmann , Stephen Warren , Tomasz Figa , Kyungmin Park , Kukjin Kim , Thomas Abraham , Sylwester Nawrocki , Olof Johansson 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.2 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 The clock was missing CLK_SET_RATE_PARENT flag, which caused rate setting failures due to inability of reconfiguration of second divider behind it. Signed-off-by: Tomasz Figa Acked-by: Kyungmin Park --- drivers/clk/samsung/clk-exynos4.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/clk/samsung/clk-exynos4.c b/drivers/clk/samsung/clk-exynos4.c index ad5ff50..d967571 100644 --- a/drivers/clk/samsung/clk-exynos4.c +++ b/drivers/clk/samsung/clk-exynos4.c @@ -530,7 +530,8 @@ static struct samsung_div_clock exynos4_div_clks[] __initdata = { DIV(sclk_i2s1, "sclk_i2s1", "sclk_audio1", DIV_PERIL5, 0, 6), DIV(sclk_i2s2, "sclk_i2s2", "sclk_audio2", DIV_PERIL5, 8, 6), DIV(none, "div_mmc4", "mout_mmc4", DIV_FSYS3, 0, 4), - DIV(none, "div_mmc_pre4", "div_mmc4", DIV_FSYS3, 8, 8), + DIV_F(none, "div_mmc_pre4", "div_mmc4", DIV_FSYS3, 8, 8, + CLK_SET_RATE_PARENT, 0), DIV(none, "div_uart0", "mout_uart0", DIV_PERIL0, 0, 4), DIV(none, "div_uart1", "mout_uart1", DIV_PERIL0, 4, 4), DIV(none, "div_uart2", "mout_uart2", DIV_PERIL0, 8, 4),