android_kernel_oneplus_msm8998/drivers/clk/bcm
Boris Brezillon 9d9541d44a clk: bcm2835: Avoid overwriting the div info when disabling a pll_div clk
commit 68af4fa8f39b542a6cde7ac19518d88e9b3099dc upstream.

bcm2835_pll_divider_off() is resetting the divider field in the A2W reg
to zero when disabling the clock.

Make sure we preserve this value by reading the previous a2w_reg value
first and ORing the result with A2W_PLL_CHANNEL_DISABLE.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Fixes: 41691b8862 ("clk: bcm2835: Add support for programming the audio domain clocks")
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-01-09 08:07:43 +01:00
..
clk-bcm281xx.c clk: bcm281xx: move compatible string definitions 2014-04-30 11:51:39 -07:00
clk-bcm2835.c clk: bcm2835: Avoid overwriting the div info when disabling a pll_div clk 2017-01-09 08:07:43 +01:00
clk-bcm21664.c clk: bcm21664: use common clock framework 2014-04-30 11:51:44 -07:00
clk-cygnus.c clk: iproc: Split off dig_filter 2015-10-21 17:02:57 -07:00
clk-iproc-armpll.c clk: iproc: add initial common clock support 2015-06-18 12:36:38 -07:00
clk-iproc-asiu.c clk: iproc: fix memory leak from clock name 2015-07-02 09:50:26 -07:00
clk-iproc-pll.c Merge branch 'clk-iproc' into clk-next 2015-10-21 17:28:19 -07:00
clk-iproc.h clk: iproc: Separate status and control variables 2015-10-21 17:03:41 -07:00
clk-kona-setup.c clk: bcm/kona: Remove ccu_list 2015-05-14 17:11:20 -07:00
clk-kona.c clk: bcm: Convert to clk_hw based provider APIs 2015-08-24 16:48:48 -07:00
clk-kona.h clk: bcm/kona: Remove ccu_list 2015-05-14 17:11:20 -07:00
clk-ns2.c clk: ns2: add clock support for Broadcom Northstar 2 SoC 2015-10-21 17:22:58 -07:00
clk-nsp.c clk: iproc: Split off dig_filter 2015-10-21 17:02:57 -07:00
Kconfig Merge branch 'clk-iproc' into clk-next 2015-10-21 17:28:19 -07:00
Makefile Merge branch 'clk-iproc' into clk-next 2015-10-21 17:28:19 -07:00