Date: Wed, 8 Nov 2017 21:12:59 +0000 (UTC) From: Emmanuel Vadot <manu@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r325562 - head/sys/arm/allwinner/clkng Message-ID: <201711082112.vA8LCxGZ077574@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201711082112.vA8LCxGZ077574>