]> git.karo-electronics.de Git - karo-tx-linux.git/commit
clk: bcm2835: pll_off should only update CM_PLL_ANARST
authorMartin Sperl <kernel@martin.sperl.org>
Mon, 29 Feb 2016 11:39:17 +0000 (11:39 +0000)
committerEric Anholt <eric@anholt.net>
Thu, 17 Mar 2016 17:42:17 +0000 (10:42 -0700)
commit6727f086cfe4ddcc651eb2bf4301abfcf619be06
treee4d3188411c381e2c41cbf42b4ad8a0a6f728b4f
parent4d3ac6662452060721599a3392bc2f524af984cb
clk: bcm2835: pll_off should only update CM_PLL_ANARST

bcm2835_pll_off is currently assigning CM_PLL_ANARST to the control
register, which may lose the other bits that are currently set by the
clock dividers.

It also now locks during the read/modify/write cycle of both
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>
drivers/clk/bcm/clk-bcm2835.c