From patchwork Tue Jun 7 11:19:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 69493 Delivered-To: patch@linaro.org Received: by 10.140.106.246 with SMTP id e109csp1922957qgf; Tue, 7 Jun 2016 04:22:40 -0700 (PDT) X-Received: by 10.36.55.138 with SMTP id r132mr2861790itr.73.1465298560496; Tue, 07 Jun 2016 04:22:40 -0700 (PDT) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id 199si34588868pfz.17.2016.06.07.04.22.40 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Jun 2016 04:22:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) smtp.mailfrom=linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1bAF4W-00030m-Ab; Tue, 07 Jun 2016 11:21:24 +0000 Received: from mail-wm0-x236.google.com ([2a00:1450:400c:c09::236]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1bAF4T-0002r2-GS for linux-arm-kernel@lists.infradead.org; Tue, 07 Jun 2016 11:21:22 +0000 Received: by mail-wm0-x236.google.com with SMTP id n184so132188923wmn.1 for ; Tue, 07 Jun 2016 04:21:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=sYU/Y5rpl0iHuylkWZ1cFIJJ6WQdXWbtFC9yrUz/tHo=; b=cpNZiTZO+W1hpPnJe7Z5DmdPER07ctQ4tktA5arI5KdkHQUUz646Kgj+XexcCFT0pL eI2LFWuXo5b2RVYIB8QfcIPvkcAbWI9b1enNeEPlm4WNnJsnwiMB/g3cvcC4BK68twkN 0Efacq5EOAfP3qEBNMeF/YMaBNdxax9FjrBHI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=sYU/Y5rpl0iHuylkWZ1cFIJJ6WQdXWbtFC9yrUz/tHo=; b=inqspdUYNqPOQAjjVIwuTyPfARLvNLZbrmV4tuATyjG+KT8eHIfI6HWs5rNpiM7NaX R5no/FqePFlwX9qguOnR95Ia6xsBHEPbuN58YnPIYrDenIECqkDorGykzUfhjEOGCc7B VsR1UZydT3WBFX8X+EEzeYr9UkWyrlZ+oCevyCuRtyMVJQAvetUEnFiGvAQy/kKfu+zM nOnD1Aae9obMmz1nbKmTptUtmYuKTrvXCD7KGBdvtLfeOJ+DIneItBz32CO9LSVNKudt n2aeqFgXw2MUfRLx598gJkddVJ8ng1VCJRz2DXvNBdFMBbJatW0Y0cdGAXEDERuQxQgw wrRA== X-Gm-Message-State: ALyK8tKMWwZ3h8xy3fHN8Mikp2/Sn+NJzy1c0ZbbJLDxZCVgimHgve6aU0aIr2xf/2qowZgM X-Received: by 10.28.147.19 with SMTP id v19mr2186547wmd.13.1465298459816; Tue, 07 Jun 2016 04:20:59 -0700 (PDT) Received: from localhost.localdomain (host81-129-171-215.range81-129.btcentralplus.com. [81.129.171.215]) by smtp.gmail.com with ESMTPSA id t199sm14466371wmt.11.2016.06.07.04.20.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Jun 2016 04:20:59 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/6] clk: st: clk-flexgen: Detect critical clocks Date: Tue, 7 Jun 2016 12:19:25 +0100 Message-Id: <20160607111930.10375-2-lee.jones@linaro.org> X-Mailer: git-send-email 2.8.3 In-Reply-To: <20160607111930.10375-1-lee.jones@linaro.org> References: <20160607111930.10375-1-lee.jones@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160607_042121_690070_10B16026 X-CRM114-Status: GOOD ( 13.46 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2a00:1450:400c:c09:0:0:0:236 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kernel@stlinux.com, mturquette@baylibre.com, sboyd@codeaurora.org, patrice.chotard@st.com, linux-spi@vger.kernel.org, broonie@kernel.org, Lee Jones , linux-clk@vger.kernel.org, maxime.coquelin@st.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org Utilise the new Critical Clock infrastructure to mark clocks which much not be disabled as CRITICAL. While we're at it, reduce the coverage of the flex_flags variable, since it's only really used in a single for() loop. Signed-off-by: Lee Jones --- drivers/clk/st/clk-flexgen.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.8.3 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel diff --git a/drivers/clk/st/clk-flexgen.c b/drivers/clk/st/clk-flexgen.c index 627267c..546bd79 100644 --- a/drivers/clk/st/clk-flexgen.c +++ b/drivers/clk/st/clk-flexgen.c @@ -267,7 +267,6 @@ static void __init st_of_flexgen_setup(struct device_node *np) const char **parents; int num_parents, i; spinlock_t *rlock = NULL; - unsigned long flex_flags = 0; int ret; pnode = of_get_parent(np); @@ -308,12 +307,15 @@ static void __init st_of_flexgen_setup(struct device_node *np) for (i = 0; i < clk_data->clk_num; i++) { struct clk *clk; const char *clk_name; + unsigned long flex_flags = 0; if (of_property_read_string_index(np, "clock-output-names", i, &clk_name)) { break; } + of_clk_detect_critical(np, i, &flex_flags); + /* * If we read an empty clock name then the output is unused */