Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1226509
| From | Stephen Boyd <sboyd@codeaurora.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v4 2/4] clk: qcom: Add support for RCGs with shared branches |
| Date | 2015-09-17 00:10 +0200 |
| Message-ID | <q9t3Q-AU-37@gated-at.bofh.it> (permalink) |
| References | <q9kWB-5Hr-19@gated-at.bofh.it> <q9kWC-5Hr-33@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 09/16, Georgi Djakov wrote:
> +static int clk_rcg2_shared_enable(struct clk_hw *hw)
> +{
> + struct clk_rcg2 *rcg = to_clk_rcg2(hw);
> +
> + if (!rcg->current_freq) {
> + struct clk_hw *parent = clk_hw_get_parent(hw);
> + unsigned long parent_rate = clk_hw_get_rate(parent);
> +
> + rcg->current_freq = clk_rcg2_recalc_rate(hw, parent_rate);
Hmm no. I meant adding a recal_rate implementation for this
specific type of clk_ops that assigns the current_freq value when
it's called. I assume we're not calling enable on this clock
before we register it with the framework.
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v4 0/4] Add support for more MSM8916 clocks Georgi Djakov <georgi.djakov@linaro.org> - 2015-09-16 15:30 +0200
[PATCH v4 2/4] clk: qcom: Add support for RCGs with shared branches Georgi Djakov <georgi.djakov@linaro.org> - 2015-09-16 15:30 +0200
Re: [PATCH v4 2/4] clk: qcom: Add support for RCGs with shared branches Stephen Boyd <sboyd@codeaurora.org> - 2015-09-17 00:10 +0200
[PATCH v4 4/4] clk: qcom: Add MSM8916 audio clocks Georgi Djakov <georgi.djakov@linaro.org> - 2015-09-16 15:30 +0200
[PATCH v4 1/4] clk: qcom: Add MSM8916 iommu clocks Georgi Djakov <georgi.djakov@linaro.org> - 2015-09-16 15:30 +0200
[PATCH v4 3/4] clk: qcom: Add MSM8916 gpu clocks Georgi Djakov <georgi.djakov@linaro.org> - 2015-09-16 15:30 +0200
csiph-web