From patchwork Tue Feb 13 13:40:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Hajda X-Patchwork-Id: 10216337 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 897BC601C2 for ; Tue, 13 Feb 2018 13:41:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 745F028E6C for ; Tue, 13 Feb 2018 13:41:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 71E8928D9C; Tue, 13 Feb 2018 13:41:05 +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 EB13128DBE for ; Tue, 13 Feb 2018 13:41:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964854AbeBMNlE (ORCPT ); Tue, 13 Feb 2018 08:41:04 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:58125 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964832AbeBMNlC (ORCPT ); Tue, 13 Feb 2018 08:41:02 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20180213134100euoutp01ac4e98c26e223b8406e3956f255b4fbd~S5lEymL1g2992929929euoutp01J; Tue, 13 Feb 2018 13:41:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20180213134100euoutp01ac4e98c26e223b8406e3956f255b4fbd~S5lEymL1g2992929929euoutp01J DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1518529260; bh=aKLdnE6XlMFhpMPsVzXz8VdFFtS4eWlAsF2J5coCrx0=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=KMxnCp1D+mehgiRe9/7d2FNA4ep7tns3LMBBFPs5FhAXTr/drO2Zt2ZZJdwJLqEXd rhkVwK16+aWUcBksCa0Ru3lg6Qg53Uk8ZFUhjGJKoH3ddNCO7LqdcVZ6RZwtpUyddF zgfAd9kkzRVmiH8sAkyTbN9WHSvaTK4M6UtaE3cI= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20180213134059eucas1p1700cfcc35eed63dcc8678922765357b4~S5lD8L2Bp0221102211eucas1p1a; Tue, 13 Feb 2018 13:40:59 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id A0.72.17380.BEAE28A5; Tue, 13 Feb 2018 13:40:59 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20180213134058eucas1p277d1ac59e24cadeea9638abe79f9da27~S5lCtNCWz2618026180eucas1p2D; Tue, 13 Feb 2018 13:40:58 +0000 (GMT) X-AuditID: cbfec7f4-6f9ff700000043e4-f6-5a82eaeb50ca Received: from eusync1.samsung.com ( [203.254.199.211]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 13.DC.04183.AEAE28A5; Tue, 13 Feb 2018 13:40:58 +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:40:58 +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 1/7] clk: samsung: exynos3250: fix PLL rates Date: Tue, 13 Feb 2018 14:40:26 +0100 Message-id: <20180213134032.30235-2-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+NgFjrDIsWRmVeSWpSXmKPExsWy7djPc7qvXzVFGez8J2lxa905VouNM9az Wlz/8pzVov/xa2aL8+c3sFt87LnHajHj/D4mi7VH7rJbXDzlanH4TTurxb9rG1ksVu36w+jA 4/H+Riu7x85Zd9k9Nq3qZPPo27KK0ePzJrkA1igum5TUnMyy1CJ9uwSujPdP/Ap6uSsOTnvC 3sDYx9nFyMkhIWAi8fj1U+YuRi4OIYEVjBJXflxih3A+M0pMOLmLpYuRA6yq7bAnRHwZo8Tk 19tZIZz/jBIzP71jBxnFJqAp8XfzTTYQW0RAX2LJqotgNrNAI4vEijliILawgI3EhevPmECG sgioSuzdyg8S5hWwkDh9aCojxEXyEoffNLGC2JwClhIT7x4B2yUhsIZNoqd/KRtEkYvE2X3z mSBsYYlXx7ewQ9gyEpcnd7NANHQzSpza18kM4UxhlDj/6jJUh7XE4eMXWSGu45OYtG06M8Sb vBIdbUIQJR4SP5csgLrIUWLn9Y/QYOlhlLh/fjLrBEapBYwMqxjFU0uLc9NTi43yUsv1ihNz i0vz0vWS83M3MQLj+PS/4192MO76k3SIUYCDUYmHt2N2Y5QQa2JZcWXuIUYJDmYlEd6E+01R QrwpiZVVqUX58UWlOanFhxilOViUxHn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generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180213134058eucas1p277d1ac59e24cadeea9638abe79f9da27 X-RootMTR: 20180213134058eucas1p277d1ac59e24cadeea9638abe79f9da27 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 Acked-by: Chanwoo Choi --- drivers/clk/samsung/clk-exynos3250.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/samsung/clk-exynos3250.c b/drivers/clk/samsung/clk-exynos3250.c index 1b81e283f605..ed36728424a2 100644 --- a/drivers/clk/samsung/clk-exynos3250.c +++ b/drivers/clk/samsung/clk-exynos3250.c @@ -698,7 +698,7 @@ static const struct samsung_pll_rate_table exynos3250_epll_rates[] __initconst = PLL_36XX_RATE(144000000, 96, 2, 3, 0), PLL_36XX_RATE( 96000000, 128, 2, 4, 0), PLL_36XX_RATE( 84000000, 112, 2, 4, 0), - PLL_36XX_RATE( 80000004, 106, 2, 4, 43691), + PLL_36XX_RATE( 80000003, 106, 2, 4, 43691), PLL_36XX_RATE( 73728000, 98, 2, 4, 19923), PLL_36XX_RATE( 67737598, 270, 3, 5, 62285), PLL_36XX_RATE( 65535999, 174, 2, 5, 49982), @@ -734,7 +734,7 @@ static const struct samsung_pll_rate_table exynos3250_vpll_rates[] __initconst = PLL_36XX_RATE(148352005, 98, 2, 3, 59070), PLL_36XX_RATE(108000000, 144, 2, 4, 0), PLL_36XX_RATE( 74250000, 99, 2, 4, 0), - PLL_36XX_RATE( 74176002, 98, 3, 4, 59070), + PLL_36XX_RATE( 74176002, 98, 2, 4, 59070), PLL_36XX_RATE( 54054000, 216, 3, 5, 14156), PLL_36XX_RATE( 54000000, 144, 2, 5, 0), { /* sentinel */ }