]> git.baikalelectronics.ru Git - kernel.git/commit
clk: meson: vid-pll-div: remove warning and return 0 on invalid config
authorNeil Armstrong <narmstrong@baylibre.com>
Wed, 27 Mar 2019 15:13:48 +0000 (16:13 +0100)
committerNeil Armstrong <narmstrong@baylibre.com>
Fri, 29 Mar 2019 08:41:30 +0000 (09:41 +0100)
commit5d9ff7c9922f7d02dbd79edff7992fc7cbd72320
treec90645d295befb0454a9a4da9de57c7a1928ee70
parent2f85e92f478d3087d38bf849264a44c44574a47c
clk: meson: vid-pll-div: remove warning and return 0 on invalid config

The vid_pll_div is a programmable fractional divider, but vendor gives a
limited of known configuration value and it's corresponding fraction.

Thus when at reset value (0) or unknown value, we cannot determine the
result rate.

The initial behaviour was to print a warning, but the warning triggers
at each boot and when the clock tree is refreshed.

This patch moves the print to debug and returns 0 instead of the
parent rate.

Fixes: 959f6b55f968 ("clk: meson: Add vid_pll divider driver")
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Reviewed-by: Jerome Brunet <jbrunet@baylibre.com>
Link: https://lkml.kernel.org/r/20190327151348.27402-1-narmstrong@baylibre.com
drivers/clk/meson/vid-pll-div.c