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: 130810 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp4009521lja; Tue, 6 Mar 2018 06:33:32 -0800 (PST) X-Google-Smtp-Source: AG47ELv4oXQWjXS8y/9QFjVgwJxLJ3FTQB6VXzYBQhHcscGTtLAIeFzWyF0CVPZ0wdNTbw/GRf9O X-Received: by 2002:a17:902:6b48:: with SMTP id g8-v6mr16942672plt.151.1520346812690; Tue, 06 Mar 2018 06:33:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520346812; cv=none; d=google.com; s=arc-20160816; b=P1pITudUYxfEZf7eziAx4ZXUNdo7MNso+FFDENy6afcNmEaCfuwQVuIld+xW9NH0mu vfo6+YNJF7ZD/n5KdiIISdUF++Wciy8G7LQReBvbmOAeAXMyZdLjA713M5vFpmYPKa+K eH7bIoTDu+41NvtFH0xTBLSlO76b/ES7GmSzMOpMOlHBdQ2iL7d+OGJSa9rfN/c1XqZ4 Kr8Xhi3PZNajszPdEFyMA58UqSoOLXFkWWU5+FzIUAQUT5qXRMtBsn0LLJCOlv8u+oMt cRpaFzeEZrg5D5UFVPCTKPfagDoHENxcGk0jNkRtA8w44UIuYsd/9N78GBy+I426aMNj PwwQ== 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=UqJ0STysWjJbTmXUBVSq6TGzbSyY3W/apx8iGfjMa5xXrOBV0nLCh+2O6457wWaBeH F15PfSlZemT6KdSozeiMTUzsWuMeIhVgl712LA4fEUa8jRyZnciBC1L1M0OioeXZCMNV d8Qb7pRHmBD+Cgjqn5L6rlnMyZPwQAZQ3KdpYDiE6NbmjO/eDJGCvv/qJzk7zeOSENZm SaGthZvSUKK4twIQDCLwiudLFpgkTqvq4fmzOWYdT3GyT/RkaeCHi8vhsI6E79/A/eoW WDHgXmgh3wO61fs5vK+4/a0UXighsx99XdHly9F+tOYcmFd0TlFTFjf6Dwgn0Wam7Nc4 PKGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@samsung.com header.s=mail20170921 header.b=RVWtQIH+; 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 h33-v6si11317109plh.673.2018.03.06.06.33.32; Tue, 06 Mar 2018 06:33:32 -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=RVWtQIH+; 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 S1753785AbeCFOda (ORCPT + 3 others); 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 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];