Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1176701

Re: [PATCH v4 3/8] clk: add support for clocks provided by SCP(System Control Processor)

From Sudeep Holla <sudeep.holla@arm.com>
Newsgroups linux.kernel
Subject Re: [PATCH v4 3/8] clk: add support for clocks provided by SCP(System Control Processor)
Date 2015-07-03 18:20 +0200
Message-ID <pIbR0-2jt-13@gated-at.bofh.it> (permalink)
References <pz2MV-4vP-9@gated-at.bofh.it> <pz2MW-4vP-21@gated-at.bofh.it> <pHQtb-5DC-15@gated-at.bofh.it> <pIaBz-1kt-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw



On 03/07/15 15:52, Sudeep Holla wrote:

[...]

>>> +static int scpi_clk_set_rate(struct clk_hw *hw, unsigned long rate,
>>> +			     unsigned long parent_rate)
>>> +{
>>> +	struct scpi_clk *clk = to_scpi_clk(hw);
>>> +
>>> +	return clk->scpi_ops->clk_set_val(clk->id, rate);
>>> +}
>>> +
>>> +static void scpi_clk_disable(struct clk_hw *hw)
>>> +{
>>> +	scpi_clk_set_rate(hw, 0, 0);
>>
>> Does this mean you have to set a rate to enable the clock? Are
>> you relying on drivers to call clk_set_rate() to implicitly
>> enable the clock? If so, it would be better to cache the rate of
>> the clock in set_rate if the clock isn't enabled in software and
>> then send the cached rate during enable.
>>
>
> Agreed, I have asked the firmware/SCPI specification guys about
> more details on what to expect from firmware. Once they get back,
> will update the code considering your feedback.
>

OK, I got feedback and looks like it was never planned to implement that
and even specification needs to be fixed. So I will drop the disable
callback support. For now, we don't support {en,dis}able
features. We need to amend the specification to fix that.

Regards,
Sudeep
--
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 | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: [PATCH v4 3/8] clk: add support for clocks provided by SCP(System  Control Processor) Sudeep Holla <sudeep.holla@arm.com> - 2015-07-03 17:00 +0200
  Re: [PATCH v4 3/8] clk: add support for clocks provided by SCP(System  Control Processor) Sudeep Holla <sudeep.holla@arm.com> - 2015-07-03 18:20 +0200

csiph-web