From patchwork Fri Jul 8 12:47:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andi Shyti X-Patchwork-Id: 9220813 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 A61EB60572 for ; Fri, 8 Jul 2016 12:49:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9594F286E8 for ; Fri, 8 Jul 2016 12:49:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8A33628743; Fri, 8 Jul 2016 12:49:23 +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=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1E1A3286E8 for ; Fri, 8 Jul 2016 12:49:22 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bLVCZ-0007nJ-Nn; Fri, 08 Jul 2016 12:48:15 +0000 Received: from mailout1.samsung.com ([203.254.224.24]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bLVCX-0007cC-Dg for linux-arm-kernel@lists.infradead.org; Fri, 08 Jul 2016 12:48:14 +0000 Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0O9Z01E93Y7RVJ00@mailout1.samsung.com> for linux-arm-kernel@lists.infradead.org; Fri, 08 Jul 2016 21:47:51 +0900 (KST) Received: from epcpsbgm1new.samsung.com ( [172.20.52.113]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id 1C.09.05161.7F0AF775; Fri, 8 Jul 2016 21:47:51 +0900 (KST) X-AuditID: cbfee68f-f79476d000001429-fa-577fa0f752cb Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1new.samsung.com (EPCPMTA) with SMTP id 3B.6D.02101.6F0AF775; Fri, 8 Jul 2016 21:47:50 +0900 (KST) Received: from samsunx.samsung ([10.113.63.54]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0O9Z00IN1Y7N1W70@mmp2.samsung.com>; Fri, 08 Jul 2016 21:47:50 +0900 (KST) From: Andi Shyti To: Chanwoo Choi , Sylwester Nawrocki Subject: [PATCH v5] clk: exynos5433: remove CLK_IGNORE_UNUSED flag from SPI clocks Date: Fri, 08 Jul 2016 21:47:38 +0900 Message-id: <1467982058-14339-1-git-send-email-andi.shyti@samsung.com> X-Mailer: git-send-email 2.8.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrCLMWRmVeSWpSXmKPExsWyRsSkUPf7gvpwgwtPmS22H3nGarH4x3Mm i+tfnrNa3PjVxmrx+oWhRf/j18wWmx5fY7X42HOP1eLyrjlsFjPO72OyuHjK1eLwm3ZWix9n ulksVu36w+jA5/H+Riu7x+W+XiaP60s+MXvsnHWX3WPTqk42j81L6j36tqxi9Pi8SS6AI4rL JiU1J7MstUjfLoEro2vBLNaCPUIV94/NYmtgvMzfxcjJISFgInH/VSc7hC0mceHeerYuRi4O IYEVjBLLX65ghCk6+bUZKjGLUeJpXwsThPORUeL5lH8sIFVsApoSTbd/sIHYIgLhElP+/GQE KWIWOMwssbvvKlhCWCBE4szqe0wgNouAqsSB3o9gNq+Am8TVZzNZINbJS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DzGaAh0wkVlKNDkfmBjySuIN jU3MjCyNzA0tjIzNlcR5H/9fFyYkkJ5YkpqdmlqQWgTTx8TBKdXAeKZ4+QRHl+vR5rb7X7TG SuUXrfy9I36Z0eTC9ymztpu/L5USEzKeYp/h9V6/6O6dM0ZXeG5k2q+y2GSgax+htvvq3GKt 0/efNXiHrI5hPKng8myz9uLuCTe42oKnpFyKY3r8sMXsfu7s+9UL/jV4BWVtWF32Vey94DdZ SwvWgt0RX199nBnwVomlOCPRUIu5qDgRAI8PUGfUAgAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160708_054813_611266_929D52F7 X-CRM114-Status: GOOD ( 12.04 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Krzysztof Kozlowski , linux-samsung-soc@vger.kernel.org, Michael Turquette , Stephen Boyd , Tomasz Figa , Andi Shyti , linux-kernel@vger.kernel.org, Jaehoon Chung , Kukjin Kim , Andi Shyti , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Commit b82ec4e and a9e93e8 have added support in the spi device driver for the three clock lines required by the SPI controller and handles the dependency between the three (by not disabling any after resume). This way none of the SPI clocks require any criticality: remove, then the CLK_IGNORE_UNUSED flag for the SPI related clocks. Signed-off-by: Andi Shyti Reviewed-by: Krzysztof Kozlowski --- Hi, With this, I hope to have reached the end of this patch series :) After some discussions with Tomasz first and Sylwester later, we agreed to move all the clock management to the spi driver, here are the patches that do that: http://marc.info/?l=linux-kernel&m=146787645626318&w=2 http://marc.info/?l=linux-kernel&m=146798033221943&w=2 With the above modifications to the spi driver we don't need any of the SPI related clocks to be marked either as critical or as ignore unused. Thanks, Andi drivers/clk/samsung/clk-exynos5433.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/clk/samsung/clk-exynos5433.c b/drivers/clk/samsung/clk-exynos5433.c index c3a5318..fb19525 100644 --- a/drivers/clk/samsung/clk-exynos5433.c +++ b/drivers/clk/samsung/clk-exynos5433.c @@ -1661,8 +1661,7 @@ static struct samsung_gate_clock peric_gate_clks[] __initdata = { GATE(CLK_SCLK_IOCLK_SPI2, "sclk_ioclk_spi2", "ioclk_spi2_clk_in", ENABLE_SCLK_PERIC, 13, CLK_SET_RATE_PARENT, 0), GATE(CLK_SCLK_IOCLK_SPI1, "sclk_ioclk_spi1", "ioclk_spi1_clk_in", - ENABLE_SCLK_PERIC, 12, - CLK_IGNORE_UNUSED | CLK_SET_RATE_PARENT, 0), + ENABLE_SCLK_PERIC, 12, CLK_SET_RATE_PARENT, 0), GATE(CLK_SCLK_IOCLK_SPI0, "sclk_ioclk_spi0", "ioclk_spi0_clk_in", ENABLE_SCLK_PERIC, 11, CLK_SET_RATE_PARENT, 0), GATE(CLK_SCLK_IOCLK_I2S1_BCLK, "sclk_ioclk_i2s1_bclk", @@ -1677,7 +1676,7 @@ static struct samsung_gate_clock peric_gate_clks[] __initdata = { GATE(CLK_SCLK_SPI2, "sclk_spi2", "sclk_spi2_peric", ENABLE_SCLK_PERIC, 5, CLK_SET_RATE_PARENT, 0), GATE(CLK_SCLK_SPI1, "sclk_spi1", "sclk_spi1_peric", ENABLE_SCLK_PERIC, - 4, CLK_IGNORE_UNUSED | CLK_SET_RATE_PARENT, 0), + 4, CLK_SET_RATE_PARENT, 0), GATE(CLK_SCLK_SPI0, "sclk_spi0", "sclk_spi0_peric", ENABLE_SCLK_PERIC, 3, CLK_SET_RATE_PARENT, 0), GATE(CLK_SCLK_UART2, "sclk_uart2", "sclk_uart2_peric",