From patchwork Wed Oct 11 09:25:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 115527 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp531588qgn; Wed, 11 Oct 2017 02:25:30 -0700 (PDT) X-Google-Smtp-Source: AOwi7QBBHrv2mdM7FdMW+2lbUvd2ldGMM7g8gFKrgUfo/fiixZx483PwdSLForwWpTOnJ4uQYBTf X-Received: by 10.99.103.68 with SMTP id b65mr15248150pgc.271.1507713930771; Wed, 11 Oct 2017 02:25:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507713930; cv=none; d=google.com; s=arc-20160816; b=BvgnVmfrM4lTg1Hb/GLpYHfiAii5FPOzqA2h+r8GKPEgtcjVNMs06sHvXRrtjlKvIE Shykpl+LdpjMZ9kTUCESNDBh3OtL4GrJYLQvJgINOlsyqBPV8ZtkEdCnKBg+QJXdl7+h da7x2ZSJgBnw/SqBP2oS4dwhjoHhu7vv/UTMSKABmffm1ezlFRjo2x+81SAvQx6a2sZh RycbUl1OAgxxlKBSz/1Vo8Eg5zjHbKFa74I1rLjnclaNOjB3kDpBei55vPzee7kEDYDA baYqB3enqrLGIW29a/xVzKz86FZQaXp3UOteDtndITLfdjOQOQVRb33R1ZRbNtE9Hkhp a5Ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:message-id:date :subject:cc:to:from:arc-authentication-results; bh=H7Ofoa/BnYRdgVECPZCUu8dNy/i4FLAz9Js0T6J5sss=; b=vIXwtM/G8zQLsUMLzCVjJSctvwRcQoX1LL8aqiN+WzLEacwqb0lii91zI8nQW7s0HK 2SwcGNGcp29vMqs8GdtedSw7f/Q9a5k57MZLEQFEQpX21u/FuHT/msO+MmnTwq6bLEEQ rWG2AtLwYyNcycNV1EGbT0M74K5aV5ZnjMSIGp1PaWDwgMKDSRLMwftGJqHqozOL/LTF P2DimwFc4gP3HByGl5oGDGI5dG7/bLeLmfcVuS/NOzoz98vivLBCcWwFqGSNJlj+ZxWv InNWgnR3sPgXw3qosYFUkVi7/i7Oe5WDzb1p9EQRttdkX7F8rsjCM745Jr4J63GNAnUs GyOg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u18si6011954pfk.328.2017.10.11.02.25.30; Wed, 11 Oct 2017 02:25:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753357AbdJKJZ3 (ORCPT + 4 others); Wed, 11 Oct 2017 05:25:29 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:38418 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753146AbdJKJZZ (ORCPT ); Wed, 11 Oct 2017 05:25:25 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20171011092521euoutp025271637a1466b591d377723e0c3441fd~sedLjdpup1595115951euoutp026; Wed, 11 Oct 2017 09:25:21 +0000 (GMT) Received: from eusmges5.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20171011092521eucas1p20f8c14e0e5cf81689629b49c373f3bf8~sedK1sYZi3019430194eucas1p2w; Wed, 11 Oct 2017 09:25:21 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges5.samsung.com (EUCPMTA) with SMTP id CF.BB.12743.083EDD95; Wed, 11 Oct 2017 10:25:20 +0100 (BST) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20171011092520eucas1p15370b8f6ecbe832b3fbb1e52ba9ed040~sedKJm1Am2268522685eucas1p1u; Wed, 11 Oct 2017 09:25:20 +0000 (GMT) X-AuditID: cbfec7f5-f79d06d0000031c7-71-59dde3809050 Received: from eusync4.samsung.com ( [203.254.199.214]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 2B.3B.18832.083EDD95; Wed, 11 Oct 2017 10:25:20 +0100 (BST) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync4.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OXN00BGOJI4PG80@eusync4.samsung.com>; Wed, 11 Oct 2017 10:25:20 +0100 (BST) From: Marek Szyprowski To: linux-clk@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Sylwester Nawrocki , Chanwoo Choi , Inki Dae , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz Subject: [PATCH v3 0/5] Fix problems with Exynos4412 ISP clocks Date: Wed, 11 Oct 2017 11:25:10 +0200 Message-id: <20171011092515.1698-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.14.2 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrLIsWRmVeSWpSXmKPExsWy7djP87oNj+9GGkxrNrfYOGM9q8X1L89Z LSbdn8Bicf78BnaLjz33WC1mnN/HZLH2yF12i8Nv2lkdODw2repk8+jbsorR4/MmuQDmKC6b lNSczLLUIn27BK6MhT8fshZMFKo4N+EVewPjFr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4tK8dL3k/NxNjMDg2Hbs5+YdjJc2Bh9iFOBgVOLhFbh+J1KINbGsuDL3EKMEB7OSCO+5G3cj hXhTEiurUovy44tKc1KLDzFKc7AoifP27lkdKSSQnliSmp2aWpBaBJNl4uCUamBUi/34MvZ9 XfsyJd8rQZw5++tkOiq4zsuoc6XPubhH+3Tvo8oHugWFUqsWzT9ozNgtnS540kqZ5XnO9M0t jD/maCxPVcqJP6+W4uv68kyaQF0Lh33fvXmc0pPmRlfdrP6o3sRyoXnK7SXMrNPepgutv877 3dGZkdVQ5P/S8y9eheikn/rxsEyJpTgj0VCLuag4EQCD3slWCgIAAA== X-CMS-MailID: 20171011092520eucas1p15370b8f6ecbe832b3fbb1e52ba9ed040 X-Msg-Generator: CA X-Sender-IP: 182.198.249.179 X-Local-Sender: =?utf-8?q?Marek_Szyprowski=1BSRPOL-Kernel_=28TP=29=1B?= =?utf-8?b?7IK87ISx7KCE7J6QG1NlbmlvciBTb2Z0d2FyZSBFbmdpbmVlcg==?= X-Global-Sender: =?utf-8?q?Marek_Szyprowski=1BSRPOL-Kernel_=28TP=29=1BSam?= =?utf-8?q?sung_Electronics=1BSenior_Software_Engineer?= X-Sender-Code: =?utf-8?q?C10=1BEHQ=1BC10CD02CD027392?= CMS-TYPE: 201P X-CMS-RootMailID: 20171011092520eucas1p15370b8f6ecbe832b3fbb1e52ba9ed040 X-RootMTR: 20171011092520eucas1p15370b8f6ecbe832b3fbb1e52ba9ed040 References: Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Hi! Exynos4412 ISP clock controller is located in the SOC area, which belongs to ISP power domain. This was not properly handled by the current Exynos4-clk driver. This patchset instantiates a separate clock driver for those clocks, updates all clients of ISP clocks and ensures that the driver is properly integrated in ISP power domin using runtime PM feature of the clock framework. This finally solves all the mysterious freezes in accessing ISP clocks when ISP power domain is disabled. The last patch breaks support for old dtbs. It can be applied when all boards are updated. Exynos4412 ISP subsystem is only used by Trats2 boards, for which kernel is updated always together with the dtb file, so the last patch can be applied to the next kernel release after merging the DTS patch. This patchset requires clocks runtime PM support ("Add runtime PM support for clocks (on Exynos SoC example)" v9 patchset), which has been recently merged to clk-next. Best regards Marek Szyprowski Samsung R&D Institute Poland Changelog: v3: - moved dt-bindings changes to separate patch and rewrote dt bindings documentation as requrested by Rob Herring v2: https://www.spinics.net/lists/linux-samsung-soc/msg60737.html - fixed minor issues pointed by Krzysztof Kozlowski v1: https://www.spinics.net/lists/linux-clk/msg20274.html - initial version of this patchset Patch summary: Marek Szyprowski (5): clk: samsung: Instantiate Exynos4412 ISP clocks only when available clk: samsung: Add dt bindings for Exynos4412 ISP clock controller clk: samsung: Add a separate driver for Exynos4412 ISP clocks ARM: dts: exynos: Add Exynos4412 ISP clock controller clk: samsung: Remove obsolete code for Exynos4412 ISP clocks .../devicetree/bindings/clock/exynos4-clock.txt | 43 +++++ arch/arm/boot/dts/exynos4412.dtsi | 71 ++++---- drivers/clk/samsung/Makefile | 1 + drivers/clk/samsung/clk-exynos4.c | 66 +------- drivers/clk/samsung/clk-exynos4412-isp.c | 179 +++++++++++++++++++++ include/dt-bindings/clock/exynos4.h | 65 ++++---- 6 files changed, 303 insertions(+), 122 deletions(-) create mode 100644 drivers/clk/samsung/clk-exynos4412-isp.c -- 2.14.2 -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Acked-by: Krzysztof Kozlowski