clk: Bail out when calculating phase fails during clk registration
authorStephen Boyd <sboyd@kernel.org>
Wed, 5 Feb 2020 23:28:02 +0000 (15:28 -0800)
committerStephen Boyd <sboyd@kernel.org>
Wed, 12 Feb 2020 23:27:13 +0000 (15:27 -0800)
commit2760878662a290ac57cff8a5a8d8bda8f4dddc37
tree8b50aeb5276a79f9872b9c620d814ede7612758b
parent0daa376d832f4ce585f153efee4233b52fa3fe58
clk: Bail out when calculating phase fails during clk registration

Bail out of clk registration if we fail to get the phase for a clk that
has a clk_ops::get_phase() callback. Print a warning too so that driver
authors can easily figure out that some clk is unable to read back phase
information at boot.

Cc: Douglas Anderson <dianders@chromium.org>
Cc: Heiko Stuebner <heiko@sntech.de>
Suggested-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Link: https://lkml.kernel.org/r/20200205232802.29184-5-sboyd@kernel.org
Acked-by: Jerome Brunet <jbrunet@baylibre.com>
drivers/clk/clk.c