Message ID | ffb3d61f-0460-677a-ff57-7aabdf1e131f@samsung.com (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show
Return-Path: <linux-clk-owner@kernel.org> 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 1D038602CB for <patchwork-linux-clk@patchwork.kernel.org>; Thu, 15 Feb 2018 14:23:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0D00828334 for <patchwork-linux-clk@patchwork.kernel.org>; Thu, 15 Feb 2018 14:23:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 00FB72937B; Thu, 15 Feb 2018 14:23:14 +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 D153F28334 for <patchwork-linux-clk@patchwork.kernel.org>; Thu, 15 Feb 2018 14:23:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1033052AbeBOOXN (ORCPT <rfc822;patchwork-linux-clk@patchwork.kernel.org>); Thu, 15 Feb 2018 09:23:13 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:46508 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1033031AbeBOOXM (ORCPT <rfc822; linux-clk@vger.kernel.org>); Thu, 15 Feb 2018 09:23:12 -0500 Received: from epcas1p1.samsung.com (unknown [182.195.41.45]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20180215142310epoutp020c6efbfb6ff330eb060e9ee002c31a3d~Thcc5aHSF2501625016epoutp02Q; Thu, 15 Feb 2018 14:23:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20180215142310epoutp020c6efbfb6ff330eb060e9ee002c31a3d~Thcc5aHSF2501625016epoutp02Q DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1518704590; bh=/ISo0FXTWkl3EeVGKflcZXWfj9/pvKRxb6E3UthVL2Q=; h=Subject:To:Cc:From:Date:In-reply-to:References:From; b=Wa2cg9V1YAFlYMq92WOoE+/pccbz4xYP5GoeWi6kVNGqvE+D6WRJGZGq2h5JSDekx fqbgxJ4X7MEL9PUcbmE0qY0AHBW3Pz44abUBMx79G8jwLR+TpPAN/ttNfsLfJ4kEKC WccJOLYmYOLa7b6Es8Nl1zqwNY3ZbJ2lWkZdTh+w= Received: from epsmges1p3.samsung.com (unknown [182.195.42.55]) by epcas1p3.samsung.com (KnoxPortal) with ESMTP id 20180215142309epcas1p32cd3f20d933f6e54b507b7355259be53~Thcck5XlP1875418754epcas1p3I; Thu, 15 Feb 2018 14:23:09 +0000 (GMT) Received: from epcas1p4.samsung.com ( [182.195.41.48]) by epsmges1p3.samsung.com (Symantec Messaging Gateway) with SMTP id EE.99.04137.DC7958A5; Thu, 15 Feb 2018 23:23:09 +0900 (KST) Received: from epsmgms2p1new.samsung.com (unknown [182.195.42.142]) by epcas1p4.samsung.com (KnoxPortal) with ESMTP id 20180215142309epcas1p490a2620491f153ea69c7f0c4888a76a8~ThccMFcLy1669216692epcas1p4Q; Thu, 15 Feb 2018 14:23:09 +0000 (GMT) X-AuditID: b6c32a37-433ff70000001029-36-5a8597cdeb7b Received: from epmmp1.local.host ( [203.254.227.16]) by epsmgms2p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 1E.F6.03826.DC7958A5; Thu, 15 Feb 2018 23:23:09 +0900 (KST) MIME-version: 1.0 Content-type: text/plain; charset="utf-8" Received: from [106.116.147.40] by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0P4700A083YG5620@mmp1.samsung.com>; Thu, 15 Feb 2018 23:23:09 +0900 (KST) Subject: Re: [PATCH 4/7] clk: samsung: exynos5433: fix PLL rates To: Chanwoo Choi <cw00.choi@samsung.com>, Andrzej Hajda <a.hajda@samsung.com> Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>, Marek Szyprowski <m.szyprowski@samsung.com>, Tomasz Figa <tomasz.figa@gmail.com>, Michael Turquette <mturquette@baylibre.com>, Stephen Boyd <sboyd@kernel.org>, Kukjin Kim <kgene@kernel.org>, Krzysztof Kozlowski <krzk@kernel.org>, "moderated list:SAMSUNG SOC CLOCK DRIVERS" <linux-samsung-soc@vger.kernel.org>, "open list:COMMON CLK FRAMEWORK" <linux-clk@vger.kernel.org>, "Chanwoo Choi (gmail)" <cwchoi00@gmail.com>, =?UTF-8?B?7LWc7LCs7JqwIChzYW1zdW5nLmNvbSk=?= <chanwoo@kernel.org> From: Sylwester Nawrocki <s.nawrocki@samsung.com> Message-id: <ffb3d61f-0460-677a-ff57-7aabdf1e131f@samsung.com> Date: Thu, 15 Feb 2018 15:23:03 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 In-reply-to: <5A83CD07.3060008@samsung.com> Content-language: en-GB Content-transfer-encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrIKsWRmVeSWpSXmKPExsWy7bCmge7Z6a1RBuseqlvcWneO1WLjjPWs FhNvXGGxuP7lOavFs6PaFv2PXzNbnD+/gd3iY889VosZ5/cxWaw9cpfd4uIpV4t/1zayWKza 9YfRgdfj/Y1Wdo+ds+6ye2xa1cnm0bdlFaPH501yAaxRXDYpqTmZZalF+nYJXBkL1p5lK5ip UvH440u2BsaFsl2MHBwSAiYS5zZ5dzFycQgJ7GCU+DT1JzOE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fz6GAvE0FuMElO73rKD VLEJGEr0Hu1jhFhgJ3H30342EJtFQFVi1Y0ZYHFRgQiJzpXzwY7gFNCWeNF1A6yXWUBc4tj9 m4wQtrzEwSvPWSYwCsxCcusshFtnIemYhaRjASPLKkbJ1ILi3PTcYqMCw7zUcr3ixNzi0rx0 veT83E2MwOjZdlirbwfj/SXxhxgFOBiVeHg39LZGCbEmlhVX5h5ilOBgVhLh/RgFFOJNSays Si3Kjy8qzUktPsQozcGiJM57O+9YpJBAemJJanZqakFqEUyWiYNTqoFxeQbP7vdTXd2u+z0/ stcub+/tmplXJh7gEma0y/43o2mnK39e03QudYllWQl6y3LWXNjOUZl1dMK1eR++fI4t3WGy vdgl9h23xS6eT4I21jvP/js0ge1I5XTfjV9OnLB2XnZOZufd6iMn7G6tllBPC1N/JqKU9ehv SjlPv0O3c2+OrS//+9O/lViKMxINtZiLihMBir76e5oCAAA= X-CMS-MailID: 20180215142309epcas1p490a2620491f153ea69c7f0c4888a76a8 X-Msg-Generator: CA CMS-TYPE: 101P X-CMS-RootMailID: 20180213134101eucas1p1f9348abc0344594476bc8618c1006e31 X-RootMTR: 20180213134101eucas1p1f9348abc0344594476bc8618c1006e31 References: <20180213134032.30235-1-a.hajda@samsung.com> <CGME20180213134101eucas1p1f9348abc0344594476bc8618c1006e31@eucas1p1.samsung.com> <20180213134032.30235-5-a.hajda@samsung.com> <5A83CD07.3060008@samsung.com> Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: <linux-clk.vger.kernel.org> X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/clk/samsung/clk-pll.c b/drivers/clk/samsung/clk-pll.c index 1c4c7a3039f1..d7a265827e65 100644 --- a/drivers/clk/samsung/clk-pll.c +++ b/drivers/clk/samsung/clk-pll.c @@ -300,6 +300,8 @@ static unsigned long samsung_pll36xx_recalc_rate(struct clk_hw *hw, do_div(fvco, (pdiv << sdiv)); fvco >>= 16; + fvco = ((fvco + 50) / 100) * 100; + return (unsigned long)fvco; }