clk: meson: vid-pll-div: remove warning and return 0 on invalid config
PATCH 1/1 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.
--- drivers/clk/meson/vid-pll-div.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/clk/meson/vid-pll-div.c +2 -2
@@ -82,8 +82,8 @@ static unsigned long meson_vid_pll_div_recalc_rate(struct clk_hw *hw, div =_get_table_val (meson_parm_read (clk->map, &pll_div->val),meson_parm_read (clk->map, &pll_div->sel));if (!div || !div->divider) { -pr_info ("%s: Invalid config value for vid_pll_div\n" , __func__); -return parent_rate; +pr_debug ("%s: Invalid config value for vid_pll_div\n" , __func__); +return 0 ; }return DIV_ROUND_UP_ULL (parent_rate * div->multiplier, div->divider);
Signature · 1 line
2.21.0
Quoted 9 lines · Neil Armstrong
The
vid_pll_divis 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.
Quoted 8 lines
This patch moves the print to debug and returns 0 instead of the parent rate.
Fixes 72dbb8c94d0d ("clk: meson: Add vid_pll divider driver")Signed-off-by Neil Armstrong <[email protected]>--- drivers/clk/meson/vid-pll-div.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Neil Armstrong
AppliedQuoted 13 lines · Jerome Brunet
Quoted 12 lines · Neil Armstrong
The
vid_pll_divis 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.
Quoted 8 lines
Quoted 5 lines
Fixes 72dbb8c94d0d ("clk: meson: Add vid_pll divider driver")Signed-off-by Neil Armstrong <[email protected]>--- drivers/clk/meson/vid-pll-div.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)Reviewed-by Jerome Brunet <[email protected]>
Thanks,
Applied to fixes/drivers
Neil