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: 129643 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp167144lja; Mon, 26 Feb 2018 04:54:10 -0800 (PST) X-Google-Smtp-Source: AH8x224hCjMh1h1kr7JEN1BFXSjb4LI/eMPFqvAnyXoBsW2nnp4zLR+yvuGp5Q2U0XDu4omVZlrY X-Received: by 10.98.10.219 with SMTP id 88mr10536464pfk.202.1519649650647; Mon, 26 Feb 2018 04:54:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519649650; cv=none; d=google.com; s=arc-20160816; b=VTQoipb87VatweAUZNck+uhxRbfJXLBPxBHrzuLNuTU+Mij1REcSny9EPb30qN6JPb Esj94rmhllZhEhyz1i/tYZYrjnQnTiF9SxKC7g6J5g728EnnH8ztN97Bp7xCUMQ5vpEE RhvIRxD9HX1kMLwaN87lEaITuYiYwZnNUU5jhC1+/bmrksfkpk/X+iAfCQE7+bjjxxvf /jw6cb1IS+q7235xBZrhhS2KuFvgJAfAzVJPpkDNdVZmH0ubW3cMJhoFA3JImI8gXe9c 6F8jdeuK1XeVQBcDoZnIX0HNuWcYzXr58NaggBU/lJ0S6R8xEv/tLgrOtrvu0qfIOTqB G9dQ== 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:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter :arc-authentication-results; bh=d1Qu7NWAdN1mnTy5dp0rKIxD2DDY+M97FyjlWTG7S8E=; b=PiE/N0eQA2UVHMAxgk3TWy+wIPeSzWgKU2WYxS0J7zUslb5gtA/aXGVNf6tUGqhlG7 IGoBw00RpItHqbDW3qStITr3wQREBuz2t3WRWb3akoujUyd2oE8yUGBdnQHdvFwsnJ2E AL/gHb6K9U+p/njteRKB/6dp9BOT2AhZnKOZR9Rldgs81OL3WNqoTlb4+ecAkjrIFO7T 57g4a9Q1VNK9VT/Bgiw5O/WHRTsszOo6+RqmLNAbSENc78elK9io5yQXycSe7GWdHDjD ustV8ODWul3o4SewiyUX4i8DnjtjAyyqpWFq+FNRDJdJZRP7L5hrjyT8qSmAGSzX4Tk4 FjdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@samsung.com header.s=mail20170921 header.b=SeBOpyTN; 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 b2si5504382pgt.458.2018.02.26.04.54.10; Mon, 26 Feb 2018 04:54:10 -0800 (PST) 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; dkim=neutral (body hash did not verify) header.i=@samsung.com header.s=mail20170921 header.b=SeBOpyTN; 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 S1752667AbeBZMyJ (ORCPT + 3 others); 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-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org 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(+) -- 2.15.0 -- 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 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];