From patchwork Thu Apr 30 07:05:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 6300041 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 65CBBBEEE1 for ; Thu, 30 Apr 2015 07:06:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 82F65201CE for ; Thu, 30 Apr 2015 07:06:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9FDB12018E for ; Thu, 30 Apr 2015 07:06:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750911AbbD3HFp (ORCPT ); Thu, 30 Apr 2015 03:05:45 -0400 Received: from mailout3.w1.samsung.com ([210.118.77.13]:54655 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750886AbbD3HFm (ORCPT ); Thu, 30 Apr 2015 03:05:42 -0400 Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NNL00GGUYDFA150@mailout3.w1.samsung.com>; Thu, 30 Apr 2015 08:05:39 +0100 (BST) X-AuditID: cbfec7f5-f794b6d000001495-ad-5541d4499842 Received: from eusync2.samsung.com ( [203.254.199.212]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id C2.63.05269.944D1455; Thu, 30 Apr 2015 08:05:45 +0100 (BST) Received: from localhost.localdomain ([10.252.80.64]) by eusync2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0NNL003CTYD3LC20@eusync2.samsung.com>; Thu, 30 Apr 2015 08:05:39 +0100 (BST) From: Krzysztof Kozlowski To: Kukjin Kim , Russell King , Javier Martinez Canillas , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Chanwoo Choi , Inki Dae , Marek Szyprowski , Bartlomiej Zolnierkiewicz , Andrzej Hajda , Krzysztof Kozlowski Subject: [PATCH v3 2/2] ARM: dts: Use last parent for clocks during power domain on/off Date: Thu, 30 Apr 2015 16:05:25 +0900 Message-id: <1430377525-3145-2-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1430377525-3145-1-git-send-email-k.kozlowski@samsung.com> References: <1430377525-3145-1-git-send-email-k.kozlowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrILMWRmVeSWpSXmKPExsVy+t/xK7qeVxxDDWbsl7G4te4cq8XGGetZ La5/ec5qMf8IkDvp/gQWi6O/CyxevzC06H/8mtli0+NrrBaXd81hs5hxfh+Txe3LvBZrj9xl d+D1aGnuYfP4+/w6i8emVZ1sHpuX1Hv0bVnF6PF5k1wAWxSXTUpqTmZZapG+XQJXxqLd29gL 3vBX/P92g6mBsZW3i5GDQ0LAROLHZv0uRk4gU0ziwr31bF2MXBxCAksZJb5OX8kM4fxnlFix 4yIjSBWbgLHE5uVL2EBsEYFeJokdN/JAipgFOpgkHn2cxwqSEBaIlLj6djGYzSKgKrFz6jo2 kG28Am4S+x8xQmyTkzh5bDJYCaeAu8SLTbPYQUqEgErO3NSdwMi7gJFhFaNoamlyQXFSeq6R XnFibnFpXrpecn7uJkZIQH7dwbj0mNUhRgEORiUe3gvbHEOFWBPLiitzDzFKcDArifBKrAcK 8aYkVlalFuXHF5XmpBYfYpTmYFES5525632IkEB6YklqdmpqQWoRTJaJg1OqgXHe/NRrf5ok Ln++tabv4AH5aedlOAQnqzbnFe45nb5d4gb7mbbtBp8+eperdiXud9W8JHJKomGd08/nQVoW jPYTl2k/U2v5Mn3VrGUiFit7HN8zqH3kWaX4TuO2zB6z+SVML0IZ+3pebI6sXnWua/587eDD BSn/Zm14WVr+z+N74SL+7aunqB9SYinOSDTUYi4qTgQAhn3e80QCAAA= 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 v2: 1. None. 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 f67b23f303c3..2e6c95702ced 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 {