clk: imx: clk-composite-8m: add lock to gate/mux
authorPeng Fan <peng.fan@nxp.com>
Fri, 1 Nov 2019 10:16:19 +0000 (10:16 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 31 Dec 2019 15:46:14 +0000 (16:46 +0100)
commitee66712ed388df028243dbd9403596a326165613
tree74d21ddd7ff39937a1e706e0bcd492a5dd8ecd90
parent9a5b1c2f5a1548fd117135b86d8fe9b8e49466e4
clk: imx: clk-composite-8m: add lock to gate/mux

commit 073a01e8d7c23b3efb59a3d4c20aa546f9ec29a9 upstream.

There is a lock to divider in the composite driver, but that's not
enough. lock to gate/mux are also needed to provide exclusive access
to the register.

Fixes: d3ff9728134e ("clk: imx: Add imx composite clock")
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/clk/imx/clk-composite-8m.c