From patchwork Tue Feb 13 13:40:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Hajda X-Patchwork-Id: 10216347 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B3991601C2 for ; Tue, 13 Feb 2018 13:41:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A2E9B28DBF for ; Tue, 13 Feb 2018 13:41:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A0CD628D9C; Tue, 13 Feb 2018 13:41:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D53FF28E69 for ; Tue, 13 Feb 2018 13:41:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964943AbeBMNlH (ORCPT ); Tue, 13 Feb 2018 08:41:07 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:58352 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964883AbeBMNlF (ORCPT ); Tue, 13 Feb 2018 08:41:05 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20180213134104euoutp02a48cb0eeaf06ef085ac019fcc291cbba~S5lH42YAl3023530235euoutp02a; Tue, 13 Feb 2018 13:41:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20180213134104euoutp02a48cb0eeaf06ef085ac019fcc291cbba~S5lH42YAl3023530235euoutp02a DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1518529264; bh=C4ZLOI50RvL/t63WJ0gwZltHdFYzUYXwqDgkNq1XjOs=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=lWWcwNDBxVKtUAoQ0/uypneB/FJkWwvIdZ/6UGA1mFgzQn+q1pzkdqMGFuBwnsiXE k2F5NlhRXLb2dIMqbawD2uwRm+dI4Nf2GAjtOYPseEiW0ulHzXlplPTgmqiwJbHmEL LBxDpPKRTBP80XccrfA1PdsI66yKo5FimVu4y8qI= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20180213134102eucas1p118215a24a1d4e2438b4eb54f946876df~S5lGuwl7l2476524765eucas1p1C; Tue, 13 Feb 2018 13:41:02 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 4C.31.05700.EEAE28A5; Tue, 13 Feb 2018 13:41:02 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20180213134101eucas1p1f9348abc0344594476bc8618c1006e31~S5lFNg_BY1766917669eucas1p1m; Tue, 13 Feb 2018 13:41:01 +0000 (GMT) X-AuditID: cbfec7f2-1dbff70000011644-63-5a82eaee1ad0 Received: from eusync1.samsung.com ( [203.254.199.211]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 0E.3D.04178.DEAE28A5; Tue, 13 Feb 2018 13:41:01 +0000 (GMT) Received: from AMDC2768.DIGITAL.local ([106.120.43.17]) by eusync1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0P4300KN6CO7E1B0@eusync1.samsung.com>; Tue, 13 Feb 2018 13:41:01 +0000 (GMT) From: Andrzej Hajda To: Sylwester Nawrocki Cc: Andrzej Hajda , Bartlomiej Zolnierkiewicz , Marek Szyprowski , Tomasz Figa , Chanwoo Choi , Michael Turquette , Stephen Boyd , Kukjin Kim , Krzysztof Kozlowski , linux-samsung-soc@vger.kernel.org (moderated list:SAMSUNG SOC CLOCK DRIVERS), linux-clk@vger.kernel.org (open list:COMMON CLK FRAMEWORK) Subject: [PATCH 4/7] clk: samsung: exynos5433: fix PLL rates Date: Tue, 13 Feb 2018 14:40:29 +0100 Message-id: <20180213134032.30235-5-a.hajda@samsung.com> X-Mailer: git-send-email 2.16.1 In-reply-to: <20180213134032.30235-1-a.hajda@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrPIsWRmVeSWpSXmKPExsWy7djPc7rvXjVFGexeyWVxa905VouNM9az Wlz/8pzVov/xa2aL8+c3sFt87LnHajHj/D4mi7VH7rJbXDzlanH4TTurxb9rG1ksVu36w+jA 4/H+Riu7x85Zd9k9Nq3qZPPo27KK0ePzJrkA1igum5TUnMyy1CJ9uwSujJbey0wFh/kqTs69 ztLA2MPTxcjJISFgIrH8zHn2LkYuDiGBFYwSuzceY4ZwPjNK3N7azAZTdX5hMwtEYhmjxPll W6Gq/jNK3Fj9lgWkik1AU+Lv5ptgHSIC+hJLVl0Es5kFGlkkVswRA7GFBWwk9jaeYwaxWQRU JZru72IHsXkFLCTuTulmhNgmL3H4TRMriM0pYCkx8e4RVpBlEgJr2CR2T13LDlHkItH6pZ0J whaWeHV8C1RcRqKz4yATREM3o8SpfZ3MEM4UoLtfXYbqsJY4fPwiK8R5fBKTtk0HKuIAivNK dLQJQZR4SEx5+IcFwnaUODOxlwni5R5Gib/fTjFPYJRawMiwilE8tbQ4Nz212DAvtVyvODG3 uDQvXS85P3cTIzCaT/87/mkH49dLSYcYBTgYlXh4O2Y3RgmxJpYVV+YeYpTgYFYS4U243xQl xJuSWFmVWpQfX1Sak1p8iFGag0VJnDdOoy5KSCA9sSQ1OzW1ILUIJsvEwSnVwCij3f2Xe8fd 5+/stXySpJ45MzWKJC47/FOvmMXa6sJlRvtgDh+TrqOKmz6ZR8oH96h5t631mfSKkac0pepL qP7/Kx+0ryQEBHYzKK4vbRBaxZrk2mixYPFDg+x/1XOrfx3yNVlu+uOkYvi1l/O9C653dkbs WP3uQZ3GaYZCVtZfbhI9GRLXlViKMxINtZiLihMB1mcqLeICAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprPLMWRmVeSWpSXmKPExsVy+t/xy7pvXzVFGfT85bK4te4cq8XGGetZ La5/ec5q0f/4NbPF+fMb2C0+9txjtZhxfh+Txdojd9ktLp5ytTj8pp3V4t+1jSwWq3b9YXTg 8Xh/o5XdY+esu+wem1Z1snn0bVnF6PF5k1wAaxSXTUpqTmZZapG+XQJXRkvvZaaCw3wVJ+de Z2lg7OHpYuTkkBAwkTi/sJmli5GLQ0hgCaPEit07WCGcRiaJbbNXMYJUsQloSvzdfJMNxBYR 0JdYsuoiG0gRs0Aji8S1VRvBioQFbCT2Np5jBrFZBFQlmu7vYgexeQUsJO5O6WaEWCcvcfhN EyuIzSlgKTHx7hEgmwNom4XEllbRCYw8CxgZVjGKpJYW56bnFhvqFSfmFpfmpesl5+duYgQG 27ZjPzfvYLy0MfgQowAHoxIP7wZgEAqxJpYVV+YeYpTgYFYS4U24DxTiTUmsrEotyo8vKs1J LT7EKM3BoiTOe96gMkpIID2xJDU7NbUgtQgmy8TBKdXAKPDnexTPpDXLEn4r80zbXyygL3f6 196QujQdBZ/Y9Klb9k97uF/z9OlMvb/zTlx6VJR88fufLk7rVs7Vgh8/Xn+09PqlLzY/Y+aI 3310aqv7kf/bFsmeFM76zi1mmrR63/LA488jl2pETji5/ALvihPnDou4VGpeso7ZUFwdsUwq MdV35iz3BnUlluKMREMt5qLiRABmsBDCMgIAAA== X-CMS-MailID: 20180213134101eucas1p1f9348abc0344594476bc8618c1006e31 X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180213134101eucas1p1f9348abc0344594476bc8618c1006e31 X-RootMTR: 20180213134101eucas1p1f9348abc0344594476bc8618c1006e31 References: <20180213134032.30235-1-a.hajda@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Declared rates did not match rates generated by PLL. As a result driver behaved inconsitently. Signed-off-by: Andrzej Hajda --- drivers/clk/samsung/clk-exynos5433.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/clk/samsung/clk-exynos5433.c b/drivers/clk/samsung/clk-exynos5433.c index db270908037a..335bebfa21c0 100644 --- a/drivers/clk/samsung/clk-exynos5433.c +++ b/drivers/clk/samsung/clk-exynos5433.c @@ -729,7 +729,7 @@ static const struct samsung_pll_rate_table exynos5433_pll_rates[] __initconst = PLL_35XX_RATE(800000000U, 400, 6, 1), PLL_35XX_RATE(733000000U, 733, 12, 1), PLL_35XX_RATE(700000000U, 175, 3, 1), - PLL_35XX_RATE(667000000U, 222, 4, 1), + PLL_35XX_RATE(666000000U, 222, 4, 1), PLL_35XX_RATE(633000000U, 211, 4, 1), PLL_35XX_RATE(600000000U, 500, 5, 2), PLL_35XX_RATE(552000000U, 460, 5, 2), @@ -757,12 +757,12 @@ static const struct samsung_pll_rate_table exynos5433_pll_rates[] __initconst = /* AUD_PLL */ static const struct samsung_pll_rate_table exynos5433_aud_pll_rates[] __initconst = { PLL_36XX_RATE(400000000U, 200, 3, 2, 0), - PLL_36XX_RATE(393216000U, 197, 3, 2, -25690), + PLL_36XX_RATE(393216003U, 197, 3, 2, -25690), PLL_36XX_RATE(384000000U, 128, 2, 2, 0), - PLL_36XX_RATE(368640000U, 246, 4, 2, -15729), - PLL_36XX_RATE(361507200U, 181, 3, 2, -16148), - PLL_36XX_RATE(338688000U, 113, 2, 2, -6816), - PLL_36XX_RATE(294912000U, 98, 1, 3, 19923), + PLL_36XX_RATE(368639991U, 246, 4, 2, -15729), + PLL_36XX_RATE(361507202U, 181, 3, 2, -16148), + PLL_36XX_RATE(338687988U, 113, 2, 2, -6816), + PLL_36XX_RATE(294912002U, 98, 1, 3, 19923), PLL_36XX_RATE(288000000U, 96, 1, 3, 0), PLL_36XX_RATE(252000000U, 84, 1, 3, 0), { /* sentinel */ }