clk: bcm2835: add locking to pll*_on/off methods
authorMartin Sperl <kernel@martin.sperl.org>
Mon, 29 Feb 2016 11:39:18 +0000 (11:39 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Jun 2016 19:17:02 +0000 (12:17 -0700)
commit93900a7af2cd2288b5f0d209d467350beede9cf6
treec904b50465a540d11c822c7eecccf92bf3cbc33e
parentacc55cf5339a99389669139f83463ada2b1a6559
clk: bcm2835: add locking to pll*_on/off methods

commit ec36a5c6682fdd5328abf15c3c67281bed0241d7 upstream.

Add missing locking to:
* bcm2835_pll_divider_on
* bcm2835_pll_divider_off
to protect the read modify write cycle for the
register access protecting both cm_reg and a2w_reg
registers.

Fixes: 41691b8862e2 ("clk: bcm2835: Add support for programming the
audio domain clocks")

Signed-off-by: Martin Sperl <kernel@martin.sperl.org>
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/clk/bcm/clk-bcm2835.c