arm64: rockchip: armclk: Do not change parent freq if CLK_SET_DRYRUN is set
MFC after: 3 days
This commit is contained in:
parent
baec4d5985
commit
fc06a872ec
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=341255
@ -163,18 +163,18 @@ rk_clk_armclk_set_freq(struct clknode *clk, uint64_t fparent, uint64_t *fout,
|
||||
if (rate == sc->nrates)
|
||||
return (0);
|
||||
|
||||
err = clknode_set_freq(p_main, best_p, 0, 1);
|
||||
if (err != 0)
|
||||
printf("Cannot set %s to %lu\n",
|
||||
clknode_get_name(p_main),
|
||||
best_p);
|
||||
|
||||
if ((flags & CLK_SET_DRYRUN) != 0) {
|
||||
*fout = best;
|
||||
*stop = 1;
|
||||
return (0);
|
||||
}
|
||||
|
||||
err = clknode_set_freq(p_main, best_p, 0, 1);
|
||||
if (err != 0)
|
||||
printf("Cannot set %s to %lu\n",
|
||||
clknode_get_name(p_main),
|
||||
best_p);
|
||||
|
||||
DEVICE_LOCK(clk);
|
||||
READ4(clk, sc->muxdiv_offset, &val);
|
||||
val &= ~sc->div_mask;
|
||||
|
Loading…
Reference in New Issue
Block a user