OSDN Git Service

clk: tegra: Return the exact clock rate from clk_round_rate
authorRobert Yang <decatf@gmail.com>
Tue, 25 Sep 2018 21:49:40 +0000 (17:49 -0400)
committerStephen Boyd <sboyd@kernel.org>
Fri, 14 Dec 2018 21:32:55 +0000 (13:32 -0800)
commit08441a966219aee513cf802ca8de170c6655c61a
treee7049b99c5eb948d2535fad72aec7bdbed323737
parentb158aeeacc551a689dc26824800a0a27f3668bb1
clk: tegra: Return the exact clock rate from clk_round_rate

The current behavior is that clk_round_rate would return the same clock
rate passed to it for valid PLL configurations. This change will return
the exact rate the PLL will provide in accordance with clk API.

Signed-off-by: Robert Yang <decatf@gmail.com>
Reviewed-by: Dmitry Osipenko <digetx@gmail.com>
Tested-by: Dmitry Osipenko <digetx@gmail.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/tegra/clk-pll.c