Author: manu Date: Wed Nov 8 21:12:59 2017 New Revision: 325562 URL: https://svnweb.freebsd.org/changeset/base/325562
Log: Allwinner: clk: Unlock the clknode after locking it. Pointy Hat: manu Modified: head/sys/arm/allwinner/clkng/aw_clk_nkmp.c Modified: head/sys/arm/allwinner/clkng/aw_clk_nkmp.c ============================================================================== --- head/sys/arm/allwinner/clkng/aw_clk_nkmp.c Wed Nov 8 19:55:17 2017 (r325561) +++ head/sys/arm/allwinner/clkng/aw_clk_nkmp.c Wed Nov 8 21:12:59 2017 (r325562) @@ -300,6 +300,7 @@ aw_clk_nkmp_set_freq(struct clknode *clk, uint64_t fpa 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 fpa val |= 1 << sc->update_shift; WRITE4(clk, sc->offset, val); DELAY(2000); + DEVICE_UNLOCK(clk); } if ((sc->flags & AW_CLK_HAS_LOCK) != 0) { _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"