From patchwork Tue Feb 13 13:40:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Hajda X-Patchwork-Id: 10216357 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 59163601C2 for ; Tue, 13 Feb 2018 13:41:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 49993285BD for ; Tue, 13 Feb 2018 13:41:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 473AF28D16; Tue, 13 Feb 2018 13:41:12 +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 B1E6E28E46 for ; Tue, 13 Feb 2018 13:41:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964962AbeBMNlK (ORCPT ); Tue, 13 Feb 2018 08:41:10 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:58150 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964778AbeBMNlH (ORCPT ); Tue, 13 Feb 2018 08:41:07 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20180213134105euoutp01cf0e3c3654d4f098bb59faeb15f41ee6~S5lJBq7td3003230032euoutp01A; Tue, 13 Feb 2018 13:41:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20180213134105euoutp01cf0e3c3654d4f098bb59faeb15f41ee6~S5lJBq7td3003230032euoutp01A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1518529265; bh=+J1EJY7ud8oivquGUKJ9A2kWby8LVI23V7Yo3BXzQm8=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=W3EKXenVhhjoroWBZODRNUpCj/+eWXtO/dgPcYELXq9uA4CrbwfwqAkIKuO+DAsds RdkFfgJigKv1reFoK82o+DB6E+A5H5idI7+wIZFOh7Vd54tjLzWFJPocWhJxqyU9Qn eJBAufhVYJAxcHi0FLmSPLCbKKLpQOM54Rv8SL4g= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20180213134104eucas1p214666a9c5c8e586f9934d111722bf60f~S5lIIs_kv2615826158eucas1p2P; Tue, 13 Feb 2018 13:41:04 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 43.72.17380.FEAE28A5; Tue, 13 Feb 2018 13:41:03 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20180213134103eucas1p28ae04a7ddb7cc5dbd14ac21abec8f506~S5lG9Wc9K3022330223eucas1p2p; Tue, 13 Feb 2018 13:41:03 +0000 (GMT) X-AuditID: cbfec7f4-713ff700000043e4-ff-5a82eaef081d Received: from eusync1.samsung.com ( [203.254.199.211]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 95.DC.04183.FEAE28A5; Tue, 13 Feb 2018 13:41:03 +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:03 +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 6/7] clk: samsung: s3c2410: fix PLL rates Date: Tue, 13 Feb 2018 14:40:31 +0100 Message-id: <20180213134032.30235-7-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+NgFjrLIsWRmVeSWpSXmKPExsWy7djPc7rvXzVFGezsNLO4te4cq8XGGetZ La5/ec5q0f/4NbPF+fMb2C0+9txjtZhxfh+Txdojd9ktLp5ytTj8pp3V4t+1jSwWq3b9YXTg 8Xh/o5XdY+esu+wem1Z1snn0bVnF6PF5k1wAaxSXTUpqTmZZapG+XQJXRnP3dNaC83wVy98u Zm1gXMbTxcjJISFgInFh9UK2LkYuDiGBFYwSZycuYwFJCAl8ZpR43sMMU/R9+TpmiKJljBJ3 9z1khyj6zyhxbZ84iM0moCnxd/NNNhBbREBfYsmqi2A2s0Aji8SKOWIgtrCApcSdcz/AhrII qEosOrATzOYVsJC40LeLFWKZvMThN01gNidQ/cS7R1hBFksIrGCTuHh5PjtEkYvEuo6TUA3C Eq+Ob4GKy0hcntzNAtHQzShxal8nM4QzhVHi/KvLTBBV1hKHj19khTiPT2LStulARRxAcV6J jjYhiBIPiRVPfkENdZR4eG85C8T7PYwSfy+fYJrAKLWAkWEVo3hqaXFuemqxUV5quV5xYm5x aV66XnJ+7iZGYCSf/nf8yw7GXX+SDjEKcDAq8fB2zG6MEmJNLCuuzD3EKMHBrCTCm3C/KUqI NyWxsiq1KD++qDQntfgQozQHi5I4b5xGXZSQQHpiSWp2ampBahFMlomDU6qBsSS6+VTrZYta Pln1zsY7devsm299Ony4xWfD37znhok/37ffcZ/Oul/8W6f6/VdbHmU2CqY1f/vXO8c5aMY6 dZncy/oK5ht6NO9w/9b/wxDV9dvDUveOmexu9vVmPbfLtzrlnc3d0jz5hEo747dsvqm+Jd4b spUD0vaw8S9oPGfM6K/4ep+9EktxRqKhFnNRcSIABi+LqOACAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprPLMWRmVeSWpSXmKPExsVy+t/xy7rvXzVFGVy8zGxxa905VouNM9az Wlz/8pzVov/xa2aL8+c3sFt87LnHajHj/D4mi7VH7rJbXDzlanH4TTurxb9rG1ksVu36w+jA 4/H+Riu7x85Zd9k9Nq3qZPPo27KK0ePzJrkA1igum5TUnMyy1CJ9uwSujObu6awF5/kqlr9d zNrAuIyni5GTQ0LAROL78nXMXYxcHEICSxgljqw4yQThNDJJvJu3nxmkik1AU+Lv5ptsILaI gL7EklUX2UCKmAUaWSSurdrICJIQFrCUuHPuB1gDi4CqxKIDO8FsXgELiQt9u1gh1slLHH7T BGZzAtVPvHsEyOYA2mYhsaVVdAIjzwJGhlWMIqmlxbnpucVGesWJucWleel6yfm5mxiBwbbt 2M8tOxi73gUfYhTgYFTi4e2Y3RglxJpYVlyZe4hRgoNZSYQ34X5TlBBvSmJlVWpRfnxRaU5q 8SFGaQ4WJXHe8waVUUIC6YklqdmpqQWpRTBZJg5OqQbGJSy1H1dU5ou9nVTe8rwg8E265Tmn lpkJAnw6SfzLXmruU7x0bdLCImYV/WUzFTq4Ky66XWk5E/7LKtdj0nGPnwVT2aeovyrMWjSb PWiL0leD1NZm5ShWz499v7t+sSUd+Vmt4BHYUFvgwHd4TsHGdVs1fQ5fdls5I+CPiAlzssuP 4IVRJyqUWIozEg21mIuKEwGWbNRaMgIAAA== X-CMS-MailID: 20180213134103eucas1p28ae04a7ddb7cc5dbd14ac21abec8f506 X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180213134103eucas1p28ae04a7ddb7cc5dbd14ac21abec8f506 X-RootMTR: 20180213134103eucas1p28ae04a7ddb7cc5dbd14ac21abec8f506 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-s3c2410.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/clk/samsung/clk-s3c2410.c b/drivers/clk/samsung/clk-s3c2410.c index e0650c33863b..d8e58a659467 100644 --- a/drivers/clk/samsung/clk-s3c2410.c +++ b/drivers/clk/samsung/clk-s3c2410.c @@ -168,7 +168,7 @@ static struct samsung_pll_rate_table pll_s3c2410_12mhz_tbl[] __initdata = { PLL_35XX_RATE(226000000, 105, 1, 1), PLL_35XX_RATE(210000000, 132, 2, 1), /* 2410 common */ - PLL_35XX_RATE(203000000, 161, 3, 1), + PLL_35XX_RATE(202800000, 161, 3, 1), PLL_35XX_RATE(192000000, 88, 1, 1), PLL_35XX_RATE(186000000, 85, 1, 1), PLL_35XX_RATE(180000000, 82, 1, 1), @@ -178,18 +178,18 @@ static struct samsung_pll_rate_table pll_s3c2410_12mhz_tbl[] __initdata = { PLL_35XX_RATE(147000000, 90, 2, 1), PLL_35XX_RATE(135000000, 82, 2, 1), PLL_35XX_RATE(124000000, 116, 1, 2), - PLL_35XX_RATE(118000000, 150, 2, 2), + PLL_35XX_RATE(118500000, 150, 2, 2), PLL_35XX_RATE(113000000, 105, 1, 2), - PLL_35XX_RATE(101000000, 127, 2, 2), + PLL_35XX_RATE(101250000, 127, 2, 2), PLL_35XX_RATE(90000000, 112, 2, 2), - PLL_35XX_RATE(85000000, 105, 2, 2), + PLL_35XX_RATE(84750000, 105, 2, 2), PLL_35XX_RATE(79000000, 71, 1, 2), - PLL_35XX_RATE(68000000, 82, 2, 2), - PLL_35XX_RATE(56000000, 142, 2, 3), + PLL_35XX_RATE(67500000, 82, 2, 2), + PLL_35XX_RATE(56250000, 142, 2, 3), PLL_35XX_RATE(48000000, 120, 2, 3), - PLL_35XX_RATE(51000000, 161, 3, 3), + PLL_35XX_RATE(50700000, 161, 3, 3), PLL_35XX_RATE(45000000, 82, 1, 3), - PLL_35XX_RATE(34000000, 82, 2, 3), + PLL_35XX_RATE(33750000, 82, 2, 3), { /* sentinel */ }, };