diff options
-rw-r--r-- | drivers/clk/clk.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 617e56268b18..d5c477c7bcf1 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c | |||
@@ -2373,6 +2373,9 @@ static int clk_core_get_phase(struct clk_core *core) | |||
2373 | int ret; | 2373 | int ret; |
2374 | 2374 | ||
2375 | clk_prepare_lock(); | 2375 | clk_prepare_lock(); |
2376 | /* Always try to update cached phase if possible */ | ||
2377 | if (core->ops->get_phase) | ||
2378 | core->phase = core->ops->get_phase(core->hw); | ||
2376 | ret = core->phase; | 2379 | ret = core->phase; |
2377 | clk_prepare_unlock(); | 2380 | clk_prepare_unlock(); |
2378 | 2381 | ||