clk: keystone: sci-clk: cache results of last query rate operation
authorTero Kristo <t-kristo@ti.com>
Mon, 7 Sep 2020 08:57:39 +0000 (11:57 +0300)
committerStephen Boyd <sboyd@kernel.org>
Tue, 22 Sep 2020 19:58:43 +0000 (12:58 -0700)
commitd3f3f499cb335eba84788a9456f7d6f92a069bbe
treec26137d678d0cc923706d9c2145c89a6a19d11e3
parent2f05cced7307489faab873367fb20cd212e1d890
clk: keystone: sci-clk: cache results of last query rate operation

Cache results of the latest query rate operation. This optimizes the
firmware interface a bit, avoiding unnecessary calls to firmware if we
know the result already; the firmware interface is pretty expensive
to use for query rate functionality.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
Link: https://lore.kernel.org/r/20200907085740.1083-3-t-kristo@ti.com
Acked-by: Santosh Shilimkar <ssantosh@kernel.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/keystone/sci-clk.c