From patchwork Tue Mar 6 14:33:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 10261805 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 CE9BC60596 for ; Tue, 6 Mar 2018 14:33:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C090728EF6 for ; Tue, 6 Mar 2018 14:33:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B4F3628F1C; Tue, 6 Mar 2018 14:33:32 +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 5B6B428EF6 for ; Tue, 6 Mar 2018 14:33:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753785AbeCFOda (ORCPT ); Tue, 6 Mar 2018 09:33:30 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:46319 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753696AbeCFOd0 (ORCPT ); Tue, 6 Mar 2018 09:33:26 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20180306143325euoutp01ae6cc6487a061a65ceb6e5cea1ece558~ZW10zzXnO0508005080euoutp01v; Tue, 6 Mar 2018 14:33:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20180306143325euoutp01ae6cc6487a061a65ceb6e5cea1ece558~ZW10zzXnO0508005080euoutp01v DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1520346805; bh=AizvtLz2NBl+6eQdRcU7upiGQZ/Cvuzq0wl1Wsdvumc=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=RVWtQIH+PNgN7IJ6SqyYsZEaYRfYhJ55oXFyZI3OuqSW8Q5o2S8/66kybJnn6COPs OKI4TsjsRmpZJFpXQ4GjXPgkpKFNcdR20xFVjBo7SI35LHMX7sL+8tWugoaFTGZ1OU lofIa6zPkspAOJG0NxgSnvixMTO+XIH+l/rh1Sck= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20180306143324eucas1p284be106746a658463d762abe52487b57~ZW10DjgOu0472104721eucas1p2D; Tue, 6 Mar 2018 14:33:24 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 8C.DB.05700.3B6AE9A5; Tue, 6 Mar 2018 14:33:24 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20180306143323eucas1p1d420abb34b827a3128503859e0c21727~ZW1zG2V7K2359223592eucas1p18; Tue, 6 Mar 2018 14:33:23 +0000 (GMT) X-AuditID: cbfec7f2-1dbff70000011644-30-5a9ea6b38b4d Received: from eusync1.samsung.com ( [203.254.199.211]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 91.0F.04178.3B6AE9A5; Tue, 6 Mar 2018 14:33:23 +0000 (GMT) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0P5600MGHB3ETD00@eusync1.samsung.com>; Tue, 06 Mar 2018 14:33:23 +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 v3 1/6] soc: samsung: pm_domains: Add blacklisting clock handling Date: Tue, 06 Mar 2018 15:33:07 +0100 Message-id: <20180306143312.21035-2-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.15.0 In-reply-to: <20180306143312.21035-1-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrHIsWRmVeSWpSXmKPExsWy7djPc7pbls2LMphRbrFxxnpWi+tfnrNa TLo/gcXi/PkN7BYfe+6xWsw4v4/JYu2Ru+wWh9+0szpweGxa1cnm0bdlFaPH501yAcxRXDYp qTmZZalF+nYJXBkzmx4wFjRwV/y49Jy5gXESZxcjJ4eEgInEpr69TF2MXBxCAisYJdpPdUE5 nxkllq7azQZTNXHufKjEMkaJnTeOM4IkhAQamCRmPI0HsdkEDCW63naBNYgIOEh8/vSaEaSB WaCNSeLsgf1MIAlhgWCJnz/nsoDYLAKqEjc3z2EFsXkFbCXu7jnPCrFNXmLx951ggzgF7CTu XJrJAjJIQuAvq8S8xeuYIYpcJHZt/scIYQtLvDq+hR3ClpHo7DjIBGHXS/R9P8IE0dzDKLG3 ZSpUwlri8PGLYNuYBfgkJm2bDjSUAyjOK9HRJgRR4iEx+fNzqLCjRMv7TIiHJzJK/J4SOoFR agEjwypG8dTS4tz01GLDvNRyveLE3OLSvHS95PzcTYzAWDz97/inHYxfLyUdYhTgYFTi4eXw nhslxJpYVlyZe4hRgoNZSYQ3Qn9elBBvSmJlVWpRfnxRaU5q8SFGaQ4WJXHeOI26KCGB9MSS 1OzU1ILUIpgsEwenVANj45a17yvMfWQMn6T7vLDfWnbhooVS/Qq7+6uflnyr3l2RsyNT4We8 xvIzp/4yehU3vFihq7p1p5HnLJGcreeTnVlmzvEuPZ+7ftHt548W9l+0uHBynXnU/cZ5KU1W qYV3N5hP35MqUPXLPtxZ8FNJaEab515mFZUVRzoerz2k3HpvhxeDwFZHJZbijERDLeai4kQA jZ1Wx8ECAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpmluLIzCtJLcpLzFFi42I5/e/4Zd3Ny+ZFGXSf5rbYOGM9q8X1L89Z LSbdn8Bicf78BnaLjz33WC1mnN/HZLH2yF12i8Nv2lkdODw2repk8+jbsorR4/MmuQDmKC6b lNSczLLUIn27BK6MmU0PGAsauCt+XHrO3MA4ibOLkZNDQsBEYuLc+UxdjFwcQgJLGCXWbtkC 5TQxSUzquMUIUsUmYCjR9baLDcQWEXCQ+PzpNSNIEbNAB5PEnr0PwRLCAsESP3/OZQGxWQRU JW5unsMKYvMK2Erc3XOeFWKdvMTi7zvB6jkF7CTuXJoJVi8EVHN5wnfGCYw8CxgZVjGKpJYW 56bnFhvqFSfmFpfmpesl5+duYgQGzbZjPzfvYLy0MfgQowAHoxIP7waPuVFCrIllxZW5hxgl OJiVRHgj9OdFCfGmJFZWpRblxxeV5qQWH2KU5mBREuc9b1AZJSSQnliSmp2aWpBaBJNl4uCU amAsDJ1y4tvzVwa5xjZTJvOf4Pr8oqfpoMh6t9U2FzffXlzE5inw8qH8ov+FDD23Lte0Lcz6 7a14WO64RfSDUO3ItD9rzfcEf1v8UrkiuVXR0uzpzC1HfDIWyaUyTF4T2jrndv/7Hv2CBn8r htuRaTqKv1/yFz7UsWBVPPpXRTnboPc5n2xnkqYSS3FGoqEWc1FxIgAwQV4zFgIAAA== X-CMS-MailID: 20180306143323eucas1p1d420abb34b827a3128503859e0c21727 X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180306143323eucas1p1d420abb34b827a3128503859e0c21727 X-RootMTR: 20180306143323eucas1p1d420abb34b827a3128503859e0c21727 References: <20180306143312.21035-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 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];