Allwinner: clk: Unlock the clknode after locking it.
Pointy Hat: manu
This commit is contained in:
parent
e0b2fc3a51
commit
58f6e2154e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=325562
@ -300,6 +300,7 @@ aw_clk_nkmp_set_freq(struct clknode *clk, uint64_t fparent, uint64_t *fout,
|
||||
val |= aw_clk_factor_get_value(&sc->p, best_p) << sc->p.shift;
|
||||
WRITE4(clk, sc->offset, val);
|
||||
DELAY(2000);
|
||||
DEVICE_UNLOCK(clk);
|
||||
|
||||
if ((sc->flags & AW_CLK_HAS_UPDATE) != 0) {
|
||||
DEVICE_LOCK(clk);
|
||||
@ -307,6 +308,7 @@ aw_clk_nkmp_set_freq(struct clknode *clk, uint64_t fparent, uint64_t *fout,
|
||||
val |= 1 << sc->update_shift;
|
||||
WRITE4(clk, sc->offset, val);
|
||||
DELAY(2000);
|
||||
DEVICE_UNLOCK(clk);
|
||||
}
|
||||
|
||||
if ((sc->flags & AW_CLK_HAS_LOCK) != 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user