[PATCH v2] clk: keystone: don't cache clock rate
Brian Masney
bmasney at redhat.com
Mon May 11 07:36:18 PDT 2026
On Thu, May 07, 2026 at 11:09:34AM -0500, a-christidis at ti.com wrote:
> From: Michael Walle <mwalle at kernel.org>
>
> The TISCI firmware will return 0 if the clock or consumer is not
> enabled although there is a stored value in the firmware. IOW a call to
> set rate will work but at get rate will always return 0 if the clock is
> disabled.
> The clk framework will try to cache the clock rate when it's requested
> by a consumer. If the clock or consumer is not enabled at that point,
> the cached value is 0, which is wrong. Thus, disable the cache
> altogether.
>
> Signed-off-by: Michael Walle <mwalle at kernel.org>
> Reviewed-by: Kevin Hilman <khilman at baylibre.com>
> Reviewed-by: Randolph Sapp <rs at ti.com>
> Reviewed-by: Nishanth Menon <nm at ti.com>
> Signed-off-by: Antonios Christidis <a-christidis at ti.com>
Reviewed-by: Brian Masney <bmasney at redhat.com>
More information about the linux-arm-kernel
mailing list