From patchwork Wed Feb 21 10:15:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 129008 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp451198ljc; Wed, 21 Feb 2018 02:15:41 -0800 (PST) X-Google-Smtp-Source: AH8x227gVvMgaRMGGglVRpnotOQq9SAOIWLCureFkiL7voWdmaLig+ftSKP8HMk2oqIfLBv260Dk X-Received: by 10.99.111.137 with SMTP id k131mr2331318pgc.11.1519208141845; Wed, 21 Feb 2018 02:15:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519208141; cv=none; d=google.com; s=arc-20160816; b=rzGzv7lMRWzEaFpe7u1tpOXJPe3O9Y2H43qFUYHiYzvL7gW8slZjSSQgVOqcEDgLt5 8a9fcwfhD51/mdo9Hwe92op+qFMjlVE8kamLnsd06KJjGPsrAnS67S5kKR3CJ0bfrxuK jkW7rO33UGJGkH8kmCUM+pgsJF0wYZRFVaG679GiHR8VngGyQ2eysVWmBCtSFBmGwQZW 2jixBg4vc+GN8G35OjDCprcFhdnULvvkwaB26b3vv/KA3YjNLLC7mQX9/9fi+mhRS3lR aoIwWFO8uW1UYCBvaOViT85FpXjlnI3pSYZjUlIuh4iwlEVFXkuReonbL952iZo2HweG aEkw== 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=twXUCVmE+TRy5raSbpAu2AHq8M0nmDoxkdU+OV6X6As=; b=1Lq6EkeYsI548D54y7dvM577HpqeTzvNFV2D6N0QQMhp4qveSNpfiLOsLpSf8+AjJI reJ3Lmm6DBIco0E0O4R1FbSf4M/w3Uk/BO9dPRw1ud9heUgzWZa0cKhVs35tHi4+H26Q Uvw5HscKuijC4qPjZId3LFt8TwyBdoqzYJ523wLZGnmhR48O46M/brKqbLubgiKkX4xf U+IC8RibTvthY56puj3qd2Y3Q/xVxrumrCPlXwTozhbJEDeCZtzkziUd8TF5KLc0W/QY okOI1OcqT/fanPEDdptnrLV30hd0UGetlpNJ3oV/E54ae9DHv5CPa/JmF6557cXCdmJu TTfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@samsung.com header.s=mail20170921 header.b=I7nosfjH; 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 63-v6si1311154pla.526.2018.02.21.02.15.41; Wed, 21 Feb 2018 02:15:41 -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=I7nosfjH; 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 S932749AbeBUKPl (ORCPT + 3 others); Wed, 21 Feb 2018 05:15:41 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:51316 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932719AbeBUKPh (ORCPT ); Wed, 21 Feb 2018 05:15:37 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20180221101535euoutp01b85c6fceff419739b5075018790cf603~VT8AdjVQE3124131241euoutp012; Wed, 21 Feb 2018 10:15:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20180221101535euoutp01b85c6fceff419739b5075018790cf603~VT8AdjVQE3124131241euoutp012 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1519208135; bh=4wIRF/l3jMjpbPV7JRGQfLzdzHWs49EziHDFhPDVLRY=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=I7nosfjHsL4zqtDUcEJjpkqffkBvj+g7bsjHTdkyuDxzjyfcOw54+ayW/HzWZllnM W02zn3EJtNc3AUk09H4DbaoJFgFUwNAo0TWlzfFKPLj7KD7WxqDL3buk3qA7eAk+19 JJ+lHBwk5rg1RxPCt/HOGXB0fr3uwPi8aGDO/aS4= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20180221101534eucas1p13fe9f0c4d5692344eb730cb234e63a75~VT7-ASRKL0273402734eucas1p12; Wed, 21 Feb 2018 10:15:34 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 5C.81.17380.5C64D8A5; Wed, 21 Feb 2018 10:15:33 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20180221101533eucas1p234b1801844ce8fac633377d129323422~VT798w9j_1442414424eucas1p2f; Wed, 21 Feb 2018 10:15:33 +0000 (GMT) X-AuditID: cbfec7f4-713ff700000043e4-13-5a8d46c56ad8 Received: from eusync3.samsung.com ( [203.254.199.213]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id CD.E2.04178.5C64D8A5; Wed, 21 Feb 2018 10:15:33 +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 <0P4H005K9WHT4SB0@eusync3.samsung.com>; Wed, 21 Feb 2018 10:15:33 +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 1/6] soc: samsung: pm_domains: Add blacklisting clock handling Date: Wed, 21 Feb 2018 11:15:22 +0100 Message-id: <20180221101527.25554-2-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.15.0 In-reply-to: <20180221101527.25554-1-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrPIsWRmVeSWpSXmKPExsWy7djP87pH3XqjDHbf0LbYOGM9q8X1L89Z LSbdn8Bicf78BnaLjz33WC1mnN/HZLH2yF12i8Nv2lkdODw2repk8+jbsorR4/MmuQDmKC6b lNSczLLUIn27BK6M7c9vsxWc4aqY//00cwPjY44uRk4OCQETiS1LzzF3MXJxCAmsYJTY2tHF BOF8ZpSYfamHFabqzIyTrBCJZYwSD1feYoNwGpgkfnQ3MoNUsQkYSnS97WIDsUUEHCQ+f3rN CFLELNDGJHH2wH4mkISwQIBE6/ftYDaLgKpE48cL7F2MHBy8ArYSD6YYQ2yTl1j8fScbSJhT wE5i50sOkDESAn9ZJQ729jGCxCUEXCQuHeOBKBeWeHV8CzuELSPR2XGQCaK+n1Hi3/+XUM4M Ron1H1uhqqwlDh+/CPYaswCfxKRt05khhvJKdLQJQZR4SKxb9ooNIuwosXWFJMS/Exkl7vWf YpvAKLWAkWEVo3hqaXFuemqxUV5quV5xYm5xaV66XnJ+7iZGYDSe/nf8yw7GXX+SDjEKcDAq 8fC+MOiJEmJNLCuuzD3EKMHBrCTCWynUGyXEm5JYWZValB9fVJqTWnyIUZqDRUmcN06jLkpI ID2xJDU7NbUgtQgmy8TBKdXAuLGuTutSi8TLZ1ttVHLZFdzjwg/+nun45LdU89vY3B2Pbjb4 rcpRvMvwdlObkMr2K0E7RaQ0zfYKRy5tbInYybJOyil3c+QlN3+OBqnljsdbWOfca2T6WtKY 9yJ30e8yqysGW06+WFXw1Ivj4JK/XDw3yo8luqbySmst7WX0uViweArXdJVoJZbijERDLeai 4kQAiy+Rd8ICAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpkluLIzCtJLcpLzFFi42I5/e/4Vd2jbr1RBnsPs1psnLGe1eL6l+es FpPuT2CxOH9+A7vFx557rBYzzu9jslh75C67xeE37awOHB6bVnWyefRtWcXo8XmTXABzFJdN SmpOZllqkb5dAlfG9ue32QrOcFXM/36auYHxMUcXIyeHhICJxJkZJ1m7GLk4hASWMEr8PdYC 5TQxSbR1L2cDqWITMJToetsFZosIOEh8/vSaEaSIWaCDSWLP3odgCWEBP4kdk7sZQWwWAVWJ xo8X2LsYOTh4BWwlHkwxhtgmL7H4+042kDCngJ3EzpdgRwgBVUxb+5Z9AiPPAkaGVYwiqaXF uem5xYZ6xYm5xaV56XrJ+bmbGIEBs+3Yz807GC9tDD7EKMDBqMTDa6HTEyXEmlhWXJl7iFGC g1lJhLdSqDdKiDclsbIqtSg/vqg0J7X4EKM0B4uSOO95g8ooIYH0xJLU7NTUgtQimCwTB6dU A+PC6pigRul9986/57s4+eLjgsX3H6pOsjw2a6WEXtbBh5HycddXffN29FvjwXvAsjVIr0xl 7ts/m5b0/f/x8A+PvM3umbevmHM1zpv0Laxzas7v109S9adeKLK4YXfDbx27qXuLsGqf2tpP n/TVsmeFzXzBNzvpwgeDlf2Tfm+TnxAorvy+nXGOEktxRqKhFnNRcSIAualOABQCAAA= X-CMS-MailID: 20180221101533eucas1p234b1801844ce8fac633377d129323422 X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180221101533eucas1p234b1801844ce8fac633377d129323422 X-RootMTR: 20180221101533eucas1p234b1801844ce8fac633377d129323422 References: <20180221101527.25554-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 --- 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 Reviewed-by: Krzysztof Kozlowski 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];