From patchwork Mon Feb 26 12:53:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 10242179 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9E331602A0 for ; Mon, 26 Feb 2018 12:54:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8CFB329FD3 for ; Mon, 26 Feb 2018 12:54:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 80FDC29FDF; Mon, 26 Feb 2018 12:54:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6360B29FCD for ; Mon, 26 Feb 2018 12:54:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752636AbeBZMyJ (ORCPT ); Mon, 26 Feb 2018 07:54:09 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:39381 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752289AbeBZMyG (ORCPT ); Mon, 26 Feb 2018 07:54:06 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20180226125404euoutp01a0403a75d3e9641f41eeb26c9e632bc2~W4Uzo1_E81566615666euoutp01L; Mon, 26 Feb 2018 12:54:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20180226125404euoutp01a0403a75d3e9641f41eeb26c9e632bc2~W4Uzo1_E81566615666euoutp01L DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1519649644; bh=AizvtLz2NBl+6eQdRcU7upiGQZ/Cvuzq0wl1Wsdvumc=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=SeBOpyTNN2Fl7yRZrTH2BxFHLQvnutw2yQnW3ryLsVO9sN5HOB8T416pUgQIZmt9J IZOeG37JoA0N2CZBGTvVCP+bHvdWtBWX6Tp+fyNPSPeee9F5K1qd06Hw/6apVD4WOz PbitP3YzF/yzPazSzvM5qZwYjcWj9+DZ9YrD7RWs= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20180226125403eucas1p2bb3c774865c18460dc343002ad994760~W4UylRCo40419604196eucas1p2R; Mon, 26 Feb 2018 12:54:03 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id AB.12.17380.A63049A5; Mon, 26 Feb 2018 12:54:03 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20180226125402eucas1p26624013733dcc44cf5f8d2818d0899c9~W4UxH9A330419604196eucas1p2O; Mon, 26 Feb 2018 12:54:02 +0000 (GMT) X-AuditID: cbfec7f4-6f9ff700000043e4-ac-5a94036a6a47 Received: from eusync3.samsung.com ( [203.254.199.213]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 3F.FC.04183.963049A5; Mon, 26 Feb 2018 12:54:01 +0000 (GMT) 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 <0P4R0055KD5X67D0@eusync3.samsung.com>; Mon, 26 Feb 2018 12:54:01 +0000 (GMT) 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 v2 1/6] soc: samsung: pm_domains: Add blacklisting clock handling Date: Mon, 26 Feb 2018 13:53:50 +0100 Message-id: <20180226125355.9052-2-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.15.0 In-reply-to: <20180226125355.9052-1-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrEIsWRmVeSWpSXmKPExsWy7djP87rZzFOiDPZOYrbYOGM9q8X1L89Z LSbdn8Bicf78BnaLjz33WC1mnN/HZLH2yF12i8Nv2lkdODw2repk8+jbsorR4/MmuQDmKC6b lNSczLLUIn27BK6MmU0PGAsauCt+XHrO3MA4ibOLkZNDQsBE4uyBbYxdjFwcQgIrGCXaj31n hnA+M0q8/TCVBabq5IvHTBCJZYwS/46shqpqYJLY1vSbGaSKTcBQouttFxuILSLgIPH502uw ucwCbUxAS/YzgSSEBYIlHm0/CzSWg4NFQFWi57oCSJhXwEbi6vGrjBDb5CUWf98JNodTwFai 89Y0NpA5EgJ/WSX+3+xmgihykZi3vQvqPGGJV8e3sEPYMhKXJ3ezQDT0A536/yUThDODUWL9 x1aoKmuJw8cvsoLYzAJ8EpO2TWcGuUhCgFeio00IosRDouHIBagFjhJ7T82EhtIERolZ11Yz TmCUWsDIsIpRPLW0ODc9tdgoL7Vcrzgxt7g0L10vOT93EyMwJk//O/5lB+OuP0mHGAU4GJV4 eH/cmRwlxJpYVlyZe4hRgoNZSYR35WKgEG9KYmVValF+fFFpTmrxIUZpDhYlcd44jbooIYH0 xJLU7NTUgtQimCwTB6dUA6Pwgs1rShqEo41Xr3zhXrTgW3VBzpp/LjyrFf7J2lU8t59e8W+R 7OkHa2I/7s8QZ9rT3JH5RP258LH0bbF3G1knS9UlGH5YN8HzXtQz9f07ZgUfMm97pPd5Obev 3I8zcjMbJrVn+u3wKVMVPtUlF+l2qjOnz/DFrUdXspetmLJq8cMzqU6CnM5KLMUZiYZazEXF iQC/vPyaxQIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpiluLIzCtJLcpLzFFi42I5/e/4Vd1M5ilRBr9O2FhsnLGe1eL6l+es FpPuT2CxOH9+A7vFx557rBYzzu9jslh75C67xeE37awOHB6bVnWyefRtWcXo8XmTXABzFJdN SmpOZllqkb5dAlfGzKYHjAUN3BU/Lj1nbmCcxNnFyMkhIWAicfLFY6YuRi4OIYEljBK33l5j hnCamCSWbj3FBlLFJmAo0fW2C8wWEXCQ+PzpNSNIEbNAB5PEnr0PwRLCAsESj7afZeli5OBg EVCV6LmuABLmFbCRuHr8KiPENnmJxd93gpVzCthKdN6aBmYLAdVs/7eFaQIjzwJGhlWMIqml xbnpucVGesWJucWleel6yfm5mxiBIbPt2M8tOxi73gUfYhTgYFTi4V3wc1KUEGtiWXFl7iFG CQ5mJRHelYsnRwnxpiRWVqUW5ccXleakFh9ilOZgURLnPW9QGSUkkJ5YkpqdmlqQWgSTZeLg lGpgvFKiM8mypzuHc4dEXU37x/u6kvzcMeKn5h+5vuyrre38nb+ezK500pg0U7lRnfVTkOjW JMkrrXsfli/89CXskpTIttTtk0t8sibGHyjUFL+96xVzuKVo7h878anxJ/ZOPFJ26HPiDPvL 0h8nTdJXbOy57Cl97iS3+BantR9mac2+bXo5zPhLhRJLcUaioRZzUXEiAAtz8/QVAgAA X-CMS-MailID: 20180226125402eucas1p26624013733dcc44cf5f8d2818d0899c9 X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180226125402eucas1p26624013733dcc44cf5f8d2818d0899c9 X-RootMTR: 20180226125402eucas1p26624013733dcc44cf5f8d2818d0899c9 References: <20180226125355.9052-1-m.szyprowski@samsung.com> Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Handling of clock reparenting will be move to clock controller driver, so add possibility to blacklist clock handling on systems, where the clock controller already does all needed operations. This is needed to avoid potential deadlock on clock reparenting during power domain on/off procedure. Signed-off-by: Marek Szyprowski Reviewed-by: Krzysztof Kozlowski --- drivers/soc/samsung/pm_domains.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/soc/samsung/pm_domains.c b/drivers/soc/samsung/pm_domains.c index b6a436594a19..cef30bdf19b1 100644 --- a/drivers/soc/samsung/pm_domains.c +++ b/drivers/soc/samsung/pm_domains.c @@ -147,6 +147,9 @@ static __init const char *exynos_get_domain_name(struct device_node *node) return kstrdup_const(name, GFP_KERNEL); } +static const char *soc_force_no_clk[] = { +}; + static __init int exynos4_pm_init_power_domain(void) { struct device_node *np; @@ -183,6 +186,11 @@ static __init int exynos4_pm_init_power_domain(void) pd->pd.power_on = exynos_pd_power_on; pd->local_pwr_cfg = pm_domain_cfg->local_pwr_cfg; + for (i = 0; i < ARRAY_SIZE(soc_force_no_clk); i++) + if (of_find_compatible_node(NULL, NULL, + soc_force_no_clk[i])) + goto no_clk; + for (i = 0; i < MAX_CLK_PER_DOMAIN; i++) { char clk_name[8];