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: 10231711 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 7D07E605F5 for ; Wed, 21 Feb 2018 10:15:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6768228ADF for ; Wed, 21 Feb 2018 10:15:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5C3A628AE7; Wed, 21 Feb 2018 10:15:41 +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 ECFBF28ADF for ; Wed, 21 Feb 2018 10:15:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932631AbeBUKPk (ORCPT ); Wed, 21 Feb 2018 05:15:40 -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-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];