This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM625: ti-sci-clk: error

Part Number: AM625

Tool/software:

Hi,

I am getting the clock error/warning message like below 

[    1.772511] ti-sci-clk 44043000.system-controller:clock-controller: recalc-rate failed for dev=13, clk=7, ret=-19
[    1.774836] ti-sci-clk 44043000.system-controller:clock-controller: recalc-rate failed for dev=36, clk=9, ret=-19
[    1.775837] ti-sci-clk 44043000.system-controller:clock-controller: recalc-rate failed for dev=36, clk=15, ret=-19
[    1.776035] ti-sci-clk 44043000.system-controller:clock-controller: recalc-rate failed for dev=36, clk=16, ret=-19
[    1.776190] ti-sci-clk 44043000.system-controller:clock-controller: recalc-rate failed for dev=36, clk=17, ret=-19
[    1.776388] ti-sci-clk 44043000.system-controller:clock-controller: recalc-rate failed for dev=36, clk=18, ret=-19

I found in one of discussion  RE: AM625: system-controller:clock-controller: recalc-rate failed for dev=13 

like we can ignore these message, but is there any patch to suppress these message? or can I comment this line

in driver code drivers/clk/keystone/sci-clk.c

/**
 * sci_clk_recalc_rate - Get clock rate for a TI SCI clock
 * @hw: clock to get rate for
 * @parent_rate: parent rate provided by common clock framework, not used
 *
 * Gets the current clock rate of a TI SCI clock. Returns the current
 * clock rate, or zero in failure.
 */
static unsigned long sci_clk_recalc_rate(struct clk_hw *hw,
                     unsigned long parent_rate)
{
    struct sci_clk *clk = to_sci_clk(hw);
    u64 freq;
    int ret;

    ret = clk->provider->ops->get_freq(clk->provider->sci, clk->dev_id,
                       clk->clk_id, &freq);
    if (ret) {
        dev_err(clk->provider->dev,
            "recalc-rate failed for dev=%d, clk=%d, ret=%d\n",
            clk->dev_id, clk->clk_id, ret);
        return 0;
    }

    return freq;
}

I can't use the sdk 11.01.05.03 code directly, 

Please give suggestion.

Regards,

Gireesh Hiremath