From patchwork Tue Feb 13 13:40:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Hajda X-Patchwork-Id: 10216341 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 E666F601C2 for ; Tue, 13 Feb 2018 13:41:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D3FC728DBD for ; Tue, 13 Feb 2018 13:41:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D227928DB5; Tue, 13 Feb 2018 13:41:06 +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 6B35F28DC2 for ; Tue, 13 Feb 2018 13:41:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964919AbeBMNlF (ORCPT ); Tue, 13 Feb 2018 08:41:05 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:58339 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964778AbeBMNlE (ORCPT ); Tue, 13 Feb 2018 08:41:04 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20180213134102euoutp021b2df6254983d88d6a3093d975abb011~S5lGQKVo73023530235euoutp02X; Tue, 13 Feb 2018 13:41:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20180213134102euoutp021b2df6254983d88d6a3093d975abb011~S5lGQKVo73023530235euoutp02X DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1518529262; bh=VWaaXjv2AyL5GxbZrchF1WayTnvkSsCOdqtgNIsiICQ=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=jGrVTy3D+TPN/tg4mwc/HUq7q0t7ruGpbx3DRJ0JeFmxnZsB6wDIwAzWoCFqqXztf mO1IM5JMzgUenooeEB4uBxW2nSooggywZKOOEwh5R9Zgma3L25GWN78liNsDPSymBc /p9mflY3KJhnJdZ0ph37p8I3qjFIMd4KjrzcHlF8= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20180213134101eucas1p2d1e519deda531dba9185bb7db57f02b8~S5lFPnLLj2618026180eucas1p2H; Tue, 13 Feb 2018 13:41:01 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 7A.31.05700.CEAE28A5; Tue, 13 Feb 2018 13:41:00 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20180213134100eucas1p1a3dd9c27f8779390e77806bc4ecb40ee~S5lEE-DT42479924799eucas1p17; Tue, 13 Feb 2018 13:41:00 +0000 (GMT) X-AuditID: cbfec7f2-1dbff70000011644-5e-5a82eaecf631 Received: from eusync1.samsung.com ( [203.254.199.211]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id FB.3D.04178.BEAE28A5; Tue, 13 Feb 2018 13:40:59 +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:59 +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 2/7] clk: samsung: exynos5250: fix PLL rates Date: Tue, 13 Feb 2018 14:40:27 +0100 Message-id: <20180213134032.30235-3-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+NgFjrHIsWRmVeSWpSXmKPExsWy7djP87pvXjVFGbycoWtxa905VouNM9az Wlz/8pzVov/xa2aL8+c3sFt87LnHajHj/D4mi7VH7rJbXDzlanH4TTurxb9rG1ksVu36w+jA 4/H+Riu7x85Zd9k9Nq3qZPPo27KK0ePzJrkA1igum5TUnMyy1CJ9uwSujKVPX7MWHOOsmPn1 KHsDYxNHFyMnh4SAicTKr4uZuxi5OIQEVjBKPF97ihHC+cwosX1GAztM1duWu2wQiWWMEp/P fGeBcP4zShz8dJwVpIpNQFPi7+abbCC2iIC+xJJVF8FsZoFGFokVc8RAbGEBG4nuIxeB6jk4 WARUJZ70lIKEeQUsJC71/4FaJi9x+E0T2EhOAUuJiXePsILskhBYwSbRvfsaE0SRi8TNVb+h bGGJV8e3QDXLSHR2HGSCaOhmlDi1r5MZwpnCKHH+1WWoDmuJw8cvskJcxycxadt0ZpCLJAR4 JTrahCBKPCQeb9rCAmE7StxcPQXq4x5Gidtzm5kmMEotYGRYxSieWlqcm55abJiXWq5XnJhb XJqXrpecn7uJERjLp/8d/7SD8eulpEOMAhyMSjy8HbMbo4RYE8uKK3MPMUpwMCuJ8Cbcb4oS 4k1JrKxKLcqPLyrNSS0+xCjNwaIkzhunURclJJCeWJKanZpakFoEk2Xi4JRqYNT2b7m+XvKc xf9bdavMf06KcvXdyTy159DaxJ5z+ofP6bFMXm3EfKEt0MV0c5efx7vWSU/FSva9OVi6uafa PI/5p7Txz7SdHn+3pP1yc28+fq7F9p8Po+tM0WCRWt4FzNHhy2b3K7S8Ph3oJnFzgsA19qSl 0tWLBGW3bnE1Kit/VbrvQesKXiWW4oxEQy3mouJEAF3FM0bhAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprHLMWRmVeSWpSXmKPExsVy+t/xy7qvXzVFGXzYZmNxa905VouNM9az Wlz/8pzVov/xa2aL8+c3sFt87LnHajHj/D4mi7VH7rJbXDzlanH4TTurxb9rG1ksVu36w+jA 4/H+Riu7x85Zd9k9Nq3qZPPo27KK0ePzJrkA1igum5TUnMyy1CJ9uwSujKVPX7MWHOOsmPn1 KHsDYxNHFyMnh4SAicTblrtsXYxcHEICSxglTtw/wgrhNDJJTPx/ngWkik1AU+Lv5ptsILaI gL7EklUXwTqYBRpZJK6t2sgIkhAWsJHoPnIRqJuDg0VAVeJJTylImFfAQuJS/x92iG3yEoff NLGC2JwClhIT7x4BKxcCqtnSKjqBkWcBI8MqRpHU0uLc9NxiQ73ixNzi0rx0veT83E2MwFDb duzn5h2MlzYGH2IU4GBU4uHdAAxBIdbEsuLK3EOMEhzMSiK8CfeBQrwpiZVVqUX58UWlOanF hxilOViUxHnPG1RGCQmkJ5akZqemFqQWwWSZODilGhjT93+ZMMlE06X7j8Sh1yz3efbxq3Bf uSWUtjLrdAXH28YF5j5HV31svT6hQXGSznuTc9uYM3If3pwg2cvA6/OWf5Otjvsqla8vnku5 GPzZq3DHT3tWXsK86lV3s3zFZA04X/tvauKYsX+n9hxeV7+sLeErou3uLkwz2Hs8anv/vp9V M00F+tcqsRRnJBpqMRcVJwIAohoZETECAAA= X-CMS-MailID: 20180213134100eucas1p1a3dd9c27f8779390e77806bc4ecb40ee X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180213134100eucas1p1a3dd9c27f8779390e77806bc4ecb40ee X-RootMTR: 20180213134100eucas1p1a3dd9c27f8779390e77806bc4ecb40ee 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-exynos5250.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/clk/samsung/clk-exynos5250.c b/drivers/clk/samsung/clk-exynos5250.c index 9b073c98a891..923c608b1b95 100644 --- a/drivers/clk/samsung/clk-exynos5250.c +++ b/drivers/clk/samsung/clk-exynos5250.c @@ -711,13 +711,13 @@ static const struct samsung_pll_rate_table epll_24mhz_tbl[] __initconst = { /* sorted in descending order */ /* PLL_36XX_RATE(rate, m, p, s, k) */ PLL_36XX_RATE(192000000, 64, 2, 2, 0), - PLL_36XX_RATE(180633600, 90, 3, 2, 20762), + PLL_36XX_RATE(180633605, 90, 3, 2, 20762), PLL_36XX_RATE(180000000, 90, 3, 2, 0), PLL_36XX_RATE(73728000, 98, 2, 4, 19923), - PLL_36XX_RATE(67737600, 90, 2, 4, 20762), + PLL_36XX_RATE(67737602, 90, 2, 4, 20762), PLL_36XX_RATE(49152000, 98, 3, 4, 19923), - PLL_36XX_RATE(45158400, 90, 3, 4, 20762), - PLL_36XX_RATE(32768000, 131, 3, 5, 4719), + PLL_36XX_RATE(45158401, 90, 3, 4, 20762), + PLL_36XX_RATE(32768001, 131, 3, 5, 4719), { }, };