Re: [PATCH v3 2/4] clk: qcom: Add support for RCGs with shared branches

From: Georgi Djakov
Date: Thu Sep 10 2015 - 12:34:14 EST


On 09/10/2015 01:46 AM, Stephen Boyd wrote:
> On 08/13, Georgi Djakov wrote:
[..]
>> diff --git a/drivers/clk/qcom/clk-rcg2.c b/drivers/clk/qcom/clk-rcg2.c
>> index 9aec1761fd29..681faf2dcdc5 100644
>> --- a/drivers/clk/qcom/clk-rcg2.c
>> +++ b/drivers/clk/qcom/clk-rcg2.c
>> +
>> +static int clk_rcg2_shared_enable(struct clk_hw *hw)
>> +{
>> + struct clk_rcg2 *rcg = to_clk_rcg2(hw);
>> + const char *name = clk_hw_get_name(hw);
>> +
>> + if (!rcg->current_freq) {
>> + pr_err("%s: Please set rate before enabling\n", name);
>
> Why? Can't we find the current freq during recalc_rate?
>

Yes, thank you!

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/