mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: CHANDRU DHAVAMANI <chandru@ti.com>
To: "Kumar, Udit" <u-kumar1@ti.com>,
	Kamlesh Gurudasani <kamlesh@ti.com>, Nishanth Menon <nm@ti.com>
Cc: <kristo@kernel.org>, <ssantosh@kernel.org>, <rishabh@ti.com>,
	<vigneshr@ti.com>, <mturquette@baylibre.com>, <sboyd@kernel.org>,
	<linux-arm-kernel@lists.infradead.org>,
	<linux-kernel@vger.kernel.org>, <linux-clk@vger.kernel.org>
Subject: Re: [PATCH v2] clk: keystone: sci-clk: Adding support for non contiguous clocks
Date: Tue, 6 Feb 2024 19:56:30 +0530	[thread overview]
Message-ID: <c2b7f22d-f07d-4cac-8a01-af7b014e7ff4@ti.com> (raw)
In-Reply-To: <c5b6bd1d-dbb4-4bfb-8b3e-9b0733e2ba5d@ti.com>


On 06/02/24 19:45, Kumar, Udit wrote:
>
> On 2/6/2024 7:24 PM, Kamlesh Gurudasani wrote:
>> Nishanth Menon <nm@ti.com> writes:
>>
>>> On 16:13-20240206, Udit Kumar wrote:
>>>> Most of clocks and their parents are defined in contiguous range,
>>>> But in few cases, there is gap in clock numbers[0].
>>>> Driver assumes clocks to be in contiguous range, and add their clock
>>>> ids incrementally.
>>>>
>>>> New firmware started returning error while calling get_freq and is_on
>>>> API for non-available clock ids.
>>>>
>>>> In this fix, driver checks and adds only valid clock ids.
>>>>
>>>> Fixes: 3c13933c6033 ("clk: keystone: sci-clk: add support for 
>>>> dynamically probing clocks")
>>>>
>>>> [0] 
>>>> https://software-dl.ti.com/tisci/esd/latest/5_soc_doc/j7200/clocks.html 
>>>>
>>>> Section Clocks for NAVSS0_CPTS_0 Device,
>>>> clock id 12-15 not present.
>>>>
>>>> Signed-off-by: Udit Kumar <u-kumar1@ti.com>
>>>>                   while (num_parents--) {
>>>> +                    /* Check if this clock id is valid */
>>>> +                    ret = provider->ops->get_freq(provider->sci,
>>>> +                        sci_clk->dev_id, clk_id, &freq);
>>> get_freq is a bit expensive as it has to walk the clock tree to find
>>> the clock frequency (at least the first time?). just wondering if
>>> there is lighter alternative here?
>>>
>> How about get_clock? Doesn't read the registers at least.
>
> Said API needs, some flags to be passed,
>
> Can those flag be set to zero, Chandru ?


get_clock doesn't require any flags to be passed.


>
>
>> Regards,
>> Kamlesh

  reply	other threads:[~2024-02-06 14:26 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-06 10:43 Udit Kumar
2024-02-06 13:14 ` Nishanth Menon
2024-02-06 13:54   ` Kamlesh Gurudasani
2024-02-06 14:15     ` Kumar, Udit
2024-02-06 14:26       ` CHANDRU DHAVAMANI [this message]
2024-02-06 14:39         ` Kumar, Udit
2024-02-06 15:54           ` Kamlesh Gurudasani
2024-02-07  5:33             ` Kumar, Udit
2024-02-07  7:23               ` CHANDRU DHAVAMANI
2024-02-07  7:33                 ` Kumar, Udit
2024-02-07  8:06                   ` CHANDRU DHAVAMANI
2024-02-06 14:14   ` Kumar, Udit
2024-02-06 14:21 ` Kamlesh Gurudasani

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c2b7f22d-f07d-4cac-8a01-af7b014e7ff4@ti.com \
    --to=chandru@ti.com \
    --cc=kamlesh@ti.com \
    --cc=kristo@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mturquette@baylibre.com \
    --cc=nm@ti.com \
    --cc=rishabh@ti.com \
    --cc=sboyd@kernel.org \
    --cc=ssantosh@kernel.org \
    --cc=u-kumar1@ti.com \
    --cc=vigneshr@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®