From patchwork Fri Apr 3 09:33:55 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 6155101 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id A743CBF4A6 for ; Fri, 3 Apr 2015 09:34:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D4A6A20396 for ; Fri, 3 Apr 2015 09:34:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DE3462010B for ; Fri, 3 Apr 2015 09:34:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752397AbbDCJeK (ORCPT ); Fri, 3 Apr 2015 05:34:10 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:22861 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752376AbbDCJeI (ORCPT ); Fri, 3 Apr 2015 05:34:08 -0400 Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout2.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NM8003I75FF2K00@mailout2.w1.samsung.com>; Fri, 03 Apr 2015 10:38:04 +0100 (BST) X-AuditID: cbfec7f5-b7fc86d0000066b7-b1-551e5de18caf Received: from eusync2.samsung.com ( [203.254.199.212]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id 8A.DD.26295.1ED5E155; Fri, 03 Apr 2015 10:31:13 +0100 (BST) Received: from AMDC1943.digital.local ([106.116.151.171]) by eusync2.samsung.com (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0NM800H5O58NCL70@eusync2.samsung.com>; Fri, 03 Apr 2015 10:34:05 +0100 (BST) From: Krzysztof Kozlowski To: Andrzej Hajda , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Kukjin Kim Cc: Marek Szyprowski , Javier Martinez Canillas , Krzysztof Kozlowski Subject: [PATCH v2 2/2] ARM: dts: Use last parent for clocks during power domain on/off Date: Fri, 03 Apr 2015 11:33:55 +0200 Message-id: <1428053635-10855-2-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1428053635-10855-1-git-send-email-k.kozlowski@samsung.com> References: <1428053635-10855-1-git-send-email-k.kozlowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrPJMWRmVeSWpSXmKPExsVy+t/xK7oPY+VCDX58ZbK4te4cq8X8I0Di 6O8Ci9cvDC36H79mttj0+BqrxeVdc9gsZpzfx2Sx9shddgdOj7/Pr7N4bFrVyeaxeUm9R9+W VYwenzfJBbBGcdmkpOZklqUW6dslcGVsP7+JreAsf0XjmduMDYzveboYOTkkBEwkjrY3s0PY YhIX7q1n62Lk4hASWMoo8fXZP1YIp49JYvqW80wgVWwCxhKbly8BqxIROMsosXb2fiYQh1lg HqPE4S33WECqhAUiJW6ee88MYrMIqEpMXPyCDcTmFXCXaJ+7jg1in5zEyWOTWUFsTgEPiduz X4L1CgHVfLxylXECI+8CRoZVjKKppckFxUnpuUZ6xYm5xaV56XrJ+bmbGCGB9nUH49JjVocY BTgYlXh4LYplQ4VYE8uKK3MPMUpwMCuJ8KaHyIUK8aYkVlalFuXHF5XmpBYfYmTi4JRqYNx+ XtfScs+No5UnMyL2pWmffRhRvzr2h5q/+9KrxvxtOq826RT4JIqE1Ql8anykc8juF8Pcw8+O GbatOv5U3+DeaSXlW5V9hzvlvvLtsJI9nPtT/LxSOKfH6cATQmwt1vqNNrEBf4RSvi8/8mTm z+vH3cP3Xl2jZyooaeMyPbR9xwIexonzTymxFGckGmoxFxUnAgD/baV6EgIAAA== Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Replace fixed parent with last parent (obtained with clk_get_parent()) of clocks for devices in mfc and disp power domains. This should improve behavior if such clocks were reparented by the drivers and new parents are different than those specified in DTS. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Javier Martinez Canillas Tested-by: Javier Martinez Canillas --- Changes since v1: 1. Add Javier's reviewed/tested tags. Thanks! --- arch/arm/boot/dts/exynos5420.dtsi | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/arch/arm/boot/dts/exynos5420.dtsi b/arch/arm/boot/dts/exynos5420.dtsi index c7a44ee0ce06..b9b99305991b 100644 --- a/arch/arm/boot/dts/exynos5420.dtsi +++ b/arch/arm/boot/dts/exynos5420.dtsi @@ -264,9 +264,8 @@ mfc_pd: power-domain@10044060 { compatible = "samsung,exynos4210-pd"; reg = <0x10044060 0x20>; - clocks = <&clock CLK_FIN_PLL>, <&clock CLK_MOUT_SW_ACLK333>, - <&clock CLK_MOUT_USER_ACLK333>; - clock-names = "oscclk", "pclk0", "clk0"; + clocks = <&clock CLK_FIN_PLL>, <&clock CLK_MOUT_USER_ACLK333>; + clock-names = "oscclk", "clk0"; #power-domain-cells = <0>; }; @@ -280,16 +279,12 @@ compatible = "samsung,exynos4210-pd"; reg = <0x100440C0 0x20>; #power-domain-cells = <0>; - clocks = <&clock CLK_FIN_PLL>, <&clock CLK_MOUT_SW_ACLK200>, + clocks = <&clock CLK_FIN_PLL>, <&clock CLK_MOUT_USER_ACLK200_DISP1>, - <&clock CLK_MOUT_SW_ACLK300>, <&clock CLK_MOUT_USER_ACLK300_DISP1>, - <&clock CLK_MOUT_SW_ACLK400>, <&clock CLK_MOUT_USER_ACLK400_DISP1>, <&clock CLK_FIMD1>, <&clock CLK_MIXER>; - clock-names = "oscclk", "pclk0", "clk0", - "pclk1", "clk1", "pclk2", "clk2", - "asb0", "asb1"; + clock-names = "oscclk", "clk0", "clk1", "clk2", "asb0", "asb1"; }; pinctrl_0: pinctrl@13400000 {