]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
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)
committerSeth Forshee <seth.forshee@canonical.com>
Mon, 6 Jan 2020 14:17:38 +0000 (08:17 -0600)
commiteadef6e4522178b035711d0ae4b3cb179d0d81c4
treea429e9ab9c359adc122178f5babfae2ab5e3c07c
parent2a706d5c6aab2474c50b04c2497ca01ad9aec91e
clk: imx: clk-composite-8m: add lock to gate/mux

BugLink: https://bugs.launchpad.net/bugs/1858428
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>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/clk/imx/clk-composite-8m.c