From patchwork Mon Oct 2 10:47:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 114574 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp532689qgn; Mon, 2 Oct 2017 03:48:33 -0700 (PDT) X-Google-Smtp-Source: AOwi7QBvLViITs+FR7vSR3cw956fGj0Jt0OlA4Si1SChtltVagSvnr+P8ElwEO4L/JEyneN2cx3b X-Received: by 10.98.153.198 with SMTP id t67mr13970710pfk.62.1506941312950; Mon, 02 Oct 2017 03:48:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1506941312; cv=none; d=google.com; s=arc-20160816; b=0mv/f2xpNlNVtu4Cl8//h5keZIB4Gx39n5/1EQ2xOEwrrylnqU6xuuji6pjdVhFZiY nbL3BuXyQTq3HYHTmihAdUoFyS9SFfIx8LQE3iTclJTRYeeE+LORJgulNAjdZyC4Pb+t T2CGB4NybPLLGJ9TyIZXW8YvS9BYqRYg5CtRXlGuwJW7ZoGTwgsCFDrwNJqPW6bCaZ5Y ZamUr9jpP1giuaTe5gxd3kOOOaUo14/ClDNl2n9mG9IAPgoUUeijGfwD98JhdgLaR5By Gdh+WjFyIH7br8xNaZ3vl61m6nDyNdDgumTqig5SfRuDKIngzVX/tQuTkXrA+vsTJQ27 dfew== 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=pQN+MdCqeCmNzFQyms8Qxuhb466v/eQMTIZUOe198Vc=; b=085RoQeFaPfUT2X0H0CJq+UroeGCsOoY0tQkH7TCvr/k4gRW8DQIFf6p3tcE7ObCBO qECsWH2bWuc8Og2+pmlAw722Ru96y2mSArFiYwJEVwCqRV8R/jogeXFkB8DIOjD+l8YD MXB2sT7v7TdG5MzUai4GR7XcP/C3uCDZdKYG85+JXLfZvM/3QUlnS+9rpQh0qeOPe83k 3/1UXlqvTR+GgHjLDAzEUAlVLoEPsKJv7yHb3g6wPMHNRjOr56bgifVK41pLtVo7y1wW 6i7R8utcyLiyTHI/qFvhB+cQyYUr9iMyuHbpiPe04Ag3tj7mu9s2gukmaFAnPvNSM0qz n+Nw== 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 j195si1840758pgc.765.2017.10.02.03.48.32; Mon, 02 Oct 2017 03:48:32 -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 S1751104AbdJBKsb (ORCPT + 4 others); Mon, 2 Oct 2017 06:48:31 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:41065 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750949AbdJBKs2 (ORCPT ); Mon, 2 Oct 2017 06:48:28 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20171002104825euoutp015a55e700c47384c9b47b38964397d54c~puyIhei8O2746127461euoutp01C; Mon, 2 Oct 2017 10:48:25 +0000 (GMT) Received: from eusmges4.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20171002104824eucas1p173032b0b66384bfe8f362914bae5a966~puyH0SVhh0842308423eucas1p1i; Mon, 2 Oct 2017 10:48:24 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges4.samsung.com (EUCPMTA) with SMTP id 78.FD.12944.87912D95; Mon, 2 Oct 2017 11:48:24 +0100 (BST) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20171002104824eucas1p1f9795b5403b6cd599b1e33e9dc7b604f~puyHGxDDz1282912829eucas1p1G; Mon, 2 Oct 2017 10:48:24 +0000 (GMT) X-AuditID: cbfec7f4-f79ab6d000003290-21-59d219783085 Received: from eusync3.samsung.com ( [203.254.199.213]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id BF.6F.18832.87912D95; Mon, 2 Oct 2017 11:48:24 +0100 (BST) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OX600IRHZCIUD50@eusync3.samsung.com>; Mon, 02 Oct 2017 11:48:24 +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 0/4] Fix problems with Exynos4412 ISP clocks Date: Mon, 02 Oct 2017 12:47:55 +0200 Message-id: <20171002104759.25944-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.14.2 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrDIsWRmVeSWpSXmKPExsWy7djP87oVkpciDZ4vUrbYOGM9q8X1L89Z LSbdn8Bicf78BnaLjz33WC1mnN/HZLH2yF12i8Nv2lkdODw2repk8+jbsorR4/MmuQDmKC6b lNSczLLUIn27BK6Ma/c+Mha84Kv4fJe3gfE0dxcjJ4eEg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Yd+7l5B+OljcGHGAU4GJV4eDVMLkYKsSaWFVfmHmKU4GBWEuHlZbsUKcSb klhZlVqUH19UmpNafIhRmoNFSZy3d8/qSCGB9MSS1OzU1ILUIpgsEwenVAOjs8K0ELXlS9nd rfQlPvVoa191ZLvz4+cRr1PKWjw2PJUsLyPCltrUOOQvM7r898XmMlbG9ymlOu0nbar8aw/+ aNy3rbi6gu3+8fiNxs1WPx3bVs38Gy1qf+JQqNUbify6p31r1wpvWTJrSfrM7rttCQnsJ7Zo i+6Xde51nXPjUCpLycN3Qd5KLMUZiYZazEXFiQCvoVgRCAIAAA== X-CMS-MailID: 20171002104824eucas1p1f9795b5403b6cd599b1e33e9dc7b604f 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: 20171002104824eucas1p1f9795b5403b6cd599b1e33e9dc7b604f X-RootMTR: 20171002104824eucas1p1f9795b5403b6cd599b1e33e9dc7b604f 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 I hope to be merged soon to clk-next. Best regards Marek Szyprowski Samsung R&D Institute Poland Patch summary: Marek Szyprowski (4): clk: samsung: Instantiate Exynos4412 ISP clocks only when available 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 | 27 ++++ 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, 287 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