Skip to content

Commit

Permalink
Merge branch 'v5.5/fixes' into v5.6/drivers
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerome Brunet committed Dec 16, 2019
2 parents 3bf258e + d8488a4 commit c97fcd8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions drivers/clk/meson/clk-pll.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,15 @@ static unsigned long meson_clk_pll_recalc_rate(struct clk_hw *hw,
unsigned int m, n, frac;

n = meson_parm_read(clk->map, &pll->n);

/*
* On some HW, N is set to zero on init. This value is invalid as
* it would result in a division by zero. The rate can't be
* calculated in this case
*/
if (n == 0)
return 0;

m = meson_parm_read(clk->map, &pll->m);

frac = MESON_PARM_APPLICABLE(&pll->frac) ?
Expand Down
1 change: 1 addition & 0 deletions drivers/clk/meson/g12a.c
Original file line number Diff line number Diff line change
Expand Up @@ -4692,6 +4692,7 @@ static struct clk_regmap *const g12a_clk_regmaps[] = {
&g12a_bt656,
&g12a_usb1_to_ddr,
&g12a_mmc_pclk,
&g12a_uart2,
&g12a_vpu_intr,
&g12a_gic,
&g12a_sd_emmc_a_clk0,
Expand Down

0 comments on commit c97fcd8

Please sign in to comment.