From patchwork Fri Jul 21 16:36:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Sylwester Nawrocki/Kernel \\(PLT\\) /SRPOL/Staff Engineer/Samsung Electronics" X-Patchwork-Id: 9857303 X-Patchwork-Delegate: sboyd@codeaurora.org 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 2737560392 for ; Fri, 21 Jul 2017 16:37:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 145D528621 for ; Fri, 21 Jul 2017 16:37:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 090992864A; Fri, 21 Jul 2017 16:37:57 +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.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI 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 2D5FB28621 for ; Fri, 21 Jul 2017 16:37:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753925AbdGUQhz (ORCPT ); Fri, 21 Jul 2017 12:37:55 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:11897 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752048AbdGUQhy (ORCPT ); Fri, 21 Jul 2017 12:37:54 -0400 Received: from epcas1p1.samsung.com (unknown [182.195.41.45]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20170721163752epoutp044b31c6cac7b961b59de5c180e5b84db9~TZdZv9NA10053600536epoutp04V; Fri, 21 Jul 2017 16:37:52 +0000 (GMT) Received: from epsmges1p3.samsung.com (unknown [182.195.42.55]) by epcas1p3.samsung.com (KnoxPortal) with ESMTP id 20170721163751epcas1p36342d98b156babaaef93b38b4bab909f~TZdZHALT_2237522375epcas1p31; Fri, 21 Jul 2017 16:37:51 +0000 (GMT) Received: from epcas1p2.samsung.com ( [182.195.41.46]) by epsmges1p3.samsung.com (Symantec Messaging Gateway) with SMTP id 58.A8.06724.FDD22795; Sat, 22 Jul 2017 01:37:51 +0900 (KST) Received: from epsmgms2p1.samsung.com (unknown [182.195.42.79]) by epcas1p2.samsung.com (KnoxPortal) with ESMTP id 20170721163751epcas1p2fd6ba68507923b767c043b38249535e8~TZdY2SfEr1697816978epcas1p2V; Fri, 21 Jul 2017 16:37:51 +0000 (GMT) X-AuditID: b6c32a37-f79c96d000001a44-2e-59722ddfb2a4 Received: from epmmp2 ( [203.254.227.17]) by epsmgms2p1.samsung.com (Symantec Messaging Gateway) with SMTP id D1.BE.05076.FDD22795; Sat, 22 Jul 2017 01:37:51 +0900 (KST) Received: from AMDC3061.digital.local ([106.116.147.40]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OTG0066Z8TJ1AB0@mmp2.samsung.com>; Sat, 22 Jul 2017 01:37:51 +0900 (KST) From: Sylwester Nawrocki To: linux-clk@vger.kernel.org Cc: mturquette@baylibre.com, sboyd@codeaurora.org, cw00.choi@samsung.com, krzk@kernel.org, linux-samsung-soc@vger.kernel.org, b.zolnierkie@samsung.com, linux-kernel@vger.kernel.org, Sylwester Nawrocki Subject: [PATCH 2/3] clk: samsung: Add CLK_SET_RATE_PARENT to some AUDSS CLK CON clocks Date: Fri, 21 Jul 2017 18:36:43 +0200 Message-id: <1500655004-29816-2-git-send-email-s.nawrocki@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1500655004-29816-1-git-send-email-s.nawrocki@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFr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dk5qXbKoWGuOlaKCnkJeam2ipF6PqGBCkplCXm lAJ5RgZowME5wD1YSd8uwS1j1bwVzAWneCteLFzM2MC4lruLkZNDQsBE4u3sVUwQtpjEhXvr 2boYuTiEBFYzSky7+AXK+cUo8fBkDytIFZuAoUTv0T5GEFtEQFbi1rGfbCA2s8BToI5DBSC2 sECkxPT1W5hBbBYBVYmel6/A6nkF3CTeP++D2iYncfLYZLCZnALuEju+X2YBsYWAalYdX8Y0 gZF3ASPDKkau1ILi3PTcYqMCw02MwFDedljLfwfjj7PRhxgFOBiVeHgNWIoihVgTy4orcw8x SnAwK4nw/lMHCvGmJFZWpRblxxeV5qQWH2I0BTplIrOUaHI+MM7ySuINTSyNTAzMzAyNDIzN lMR5JwR+iRASSE8sSc1OTS1ILYLpY+LglGpgLAn5Udn26s3RM7uMg65fPdRwQ3vupINrJuYI yIvVZIRUHJ7MKm1tn/GtfI/Jp78/9H50d23lZDE36J5x2vjtg1xdP6bwKxwhskzqKzd5bPZ/ sOdOdrL4ztYzU0OYYrnkcru8vpy7oP5pYv0yp3DTX0uY1kz2/vrJq8mrLqd+GVvOKYe++qA9 SizFGYmGWsxFxYkAhDp+V3sCAAA= X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170721163751epcas1p2fd6ba68507923b767c043b38249535e8 X-Msg-Generator: CA X-Sender-IP: 182.195.42.79 X-Local-Sender: =?UTF-8?B?U3lsd2VzdGVyIE5hd3JvY2tpG1NSUE9MLUtlcm5lbCAoVFAp?= =?UTF-8?B?G+yCvOyEseyghOyekBtTZW5pb3IgU29mdHdhcmUgRW5naW5lZXI=?= X-Global-Sender: =?UTF-8?B?U3lsd2VzdGVyIE5hd3JvY2tpG1NSUE9MLUtlcm5lbCAoVFAp?= =?UTF-8?B?G1NhbXN1bmcgRWxlY3Ryb25pY3MbU2VuaW9yIFNvZnR3YXJlIEVuZ2luZWVy?= X-Sender-Code: =?UTF-8?B?QzEwG0VIURtDMTBDRDAyQ0QwMjczOTI=?= CMS-TYPE: 101P X-CMS-RootMailID: 20170721163751epcas1p2fd6ba68507923b767c043b38249535e8 X-RootMTR: 20170721163751epcas1p2fd6ba68507923b767c043b38249535e8 References: <1500655004-29816-1-git-send-email-s.nawrocki@samsung.com> Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This allows clk rate propagation up to the clock tree so EPLL can be reprogrammed indirectly when setting rate of the Audio Subsystem clocks. The advantage is that sound machine driver can operate only on the leaf clocks rather than explicitly re-configuring the root clock (EPLL). Signed-off-by: Sylwester Nawrocki --- drivers/clk/samsung/clk-exynos-audss.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/clk/samsung/clk-exynos-audss.c b/drivers/clk/samsung/clk-exynos-audss.c index 1fab56f..b117783 100644 --- a/drivers/clk/samsung/clk-exynos-audss.c +++ b/drivers/clk/samsung/clk-exynos-audss.c @@ -180,7 +180,7 @@ static int exynos_audss_clk_probe(struct platform_device *pdev) } clk_table[EXYNOS_MOUT_AUDSS] = clk_hw_register_mux(NULL, "mout_audss", mout_audss_p, ARRAY_SIZE(mout_audss_p), - CLK_SET_RATE_NO_REPARENT, + CLK_SET_RATE_NO_REPARENT | CLK_SET_RATE_PARENT, reg_base + ASS_CLK_SRC, 0, 1, 0, &lock); cdclk = devm_clk_get(&pdev->dev, "cdclk"); @@ -195,11 +195,11 @@ static int exynos_audss_clk_probe(struct platform_device *pdev) reg_base + ASS_CLK_SRC, 2, 2, 0, &lock); clk_table[EXYNOS_DOUT_SRP] = clk_hw_register_divider(NULL, "dout_srp", - "mout_audss", 0, reg_base + ASS_CLK_DIV, 0, 4, - 0, &lock); + "mout_audss", CLK_SET_RATE_PARENT, + reg_base + ASS_CLK_DIV, 0, 4, 0, &lock); clk_table[EXYNOS_DOUT_AUD_BUS] = clk_hw_register_divider(NULL, - "dout_aud_bus", "dout_srp", 0, + "dout_aud_bus", "dout_srp", CLK_SET_RATE_PARENT, reg_base + ASS_CLK_DIV, 4, 4, 0, &lock); clk_table[EXYNOS_DOUT_I2S] = clk_hw_register_divider(NULL, "dout_i2s",