From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752135AbcBMBJo (ORCPT ); Fri, 12 Feb 2016 20:09:44 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:37087 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750853AbcBMBJm (ORCPT ); Fri, 12 Feb 2016 20:09:42 -0500 Date: Fri, 12 Feb 2016 17:09:41 -0800 From: Stephen Boyd To: Michael Turquette Cc: linux-clk@vger.kernel.org, lee.jones@linaro.org, maxime.ripard@free-electrons.com, maxime.coquelin@st.com, geert@linux-m68k.org, heiko@sntech.de, andre.przywara@arm.com, rklein@nvidia.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v42 3/6] clk: Provide OF helper to mark clocks as CRITICAL Message-ID: <20160213010941.GH4847@codeaurora.org> References: <1455225554-13267-1-git-send-email-mturquette@baylibre.com> <1455225554-13267-4-git-send-email-mturquette@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1455225554-13267-4-git-send-email-mturquette@baylibre.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/11, Michael Turquette wrote: > +int of_clk_mark_if_critical(struct device_node *np, > + int index, unsigned long *flags) > +{ > + struct property *prop; > + const __be32 *cur; > + uint32_t idx; > + > + if (!np || !flags) > + return -EINVAL; > + > + of_property_for_each_u32(np, "clock-critical", prop, cur, idx) > + if (index == idx) > + *flags |= CLK_IS_CRITICAL; > + > + return 0; > +} I hope we don't have to export this to modules... -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project