clk: bcm2835: Protect sections updating shared registers
authorBoris Brezillon <boris.brezillon@bootlin.com>
Thu, 8 Feb 2018 13:43:36 +0000 (14:43 +0100)
committerStephen Boyd <sboyd@kernel.org>
Mon, 19 Mar 2018 16:27:37 +0000 (09:27 -0700)
commit7997f3b2df751aab0b8e60149b226a32966c41ac
tree095c9fe6b9f28d0be578aa8c947c83a5acbc6032
parent49012d1bf5f78782d398adb984a080a88ba42965
clk: bcm2835: Protect sections updating shared registers

CM_PLLx and A2W_XOSC_CTRL registers are accessed by different clock
handlers and must be accessed with ->regs_lock held.
Update the sections where this protection is missing.

Fixes: 41691b8862e2 ("clk: bcm2835: Add support for programming the audio domain clocks")
Cc: <stable@vger.kernel.org>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/bcm/clk-bcm2835.c