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: 6300081 Return-Path: X-Original-To: patchwork-linux-arm@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 887F6BEEE1 for ; Thu, 30 Apr 2015 07:08:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id ABE82201C8 for ; Thu, 30 Apr 2015 07:08:20 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CB8FA201C0 for ; Thu, 30 Apr 2015 07:08:18 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YniY8-0005Jv-8N; Thu, 30 Apr 2015 07:06:20 +0000 Received: from mailout3.w1.samsung.com ([210.118.77.13]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YniXs-00057B-FQ for linux-arm-kernel@lists.infradead.org; Thu, 30 Apr 2015 07:06:05 +0000 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> for linux-arm-kernel@lists.infradead.org; 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 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= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150430_000604_736833_5C3F5709 X-CRM114-Status: UNSURE ( 8.62 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -5.0 (-----) Cc: Krzysztof Kozlowski , Andrzej Hajda , Bartlomiej Zolnierkiewicz , Inki Dae , Chanwoo Choi , Marek Szyprowski X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 {