[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160213010941.GH4847@codeaurora.org>
Date: Fri, 12 Feb 2016 17:09:41 -0800
From: Stephen Boyd <sboyd@...eaurora.org>
To: Michael Turquette <mturquette@...libre.com>
Cc: linux-clk@...r.kernel.org, lee.jones@...aro.org,
maxime.ripard@...e-electrons.com, maxime.coquelin@...com,
geert@...ux-m68k.org, heiko@...ech.de, andre.przywara@....com,
rklein@...dia.com, linux-kernel@...r.kernel.org,
devicetree@...r.kernel.org
Subject: Re: [PATCH v42 3/6] clk: Provide OF helper to mark clocks as CRITICAL
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
Powered by blists - more mailing lists