Date: Wed, 28 Nov 2018 13:25:23 +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: r341141 - head/sys/arm64/rockchip/clk Message-ID: <201811281325.wASDPNOv085849@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: manu Date: Wed Nov 28 13:25:22 2018 New Revision: 341141 URL: https://svnweb.freebsd.org/changeset/base/341141 Log: rk_clk_composite: Fix set_mux Pointy Hat: manu Modified: head/sys/arm64/rockchip/clk/rk_clk_composite.c Modified: head/sys/arm64/rockchip/clk/rk_clk_composite.c ============================================================================== --- head/sys/arm64/rockchip/clk/rk_clk_composite.c Wed Nov 28 13:25:10 2018 (r341140) +++ head/sys/arm64/rockchip/clk/rk_clk_composite.c Wed Nov 28 13:25:22 2018 (r341141) @@ -126,7 +126,7 @@ rk_clk_composite_set_mux(struct clknode *clk, int inde DEVICE_LOCK(clk); READ4(clk, sc->muxdiv_offset, &val); - val &= ~(sc->mux_mask >> sc->mux_shift); + val &= ~sc->mux_mask; val |= index << sc->mux_shift; WRITE4(clk, sc->muxdiv_offset, val); DEVICE_UNLOCK(clk);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811281325.wASDPNOv085849>