]> www.infradead.org Git - users/dwmw2/linux.git/commit
clk: sunxi-ng: a33: Set CLK_SET_RATE_PARENT for all audio module clocks
authorChen-Yu Tsai <wens@csie.org>
Wed, 5 Dec 2018 10:11:51 +0000 (18:11 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Feb 2019 19:02:14 +0000 (20:02 +0100)
commit65009e5318f585ce41708dff205ffa76f845c17c
treeb654674420f6f00d02b1afe7948ff4f0d89dc271
parent9aab383a7308db0159355d3f53cc5ac746b772fa
clk: sunxi-ng: a33: Set CLK_SET_RATE_PARENT for all audio module clocks

[ Upstream commit 6e6da2039c82271dd873b9ad2b902a692a7dd554 ]

All the audio interfaces on Allwinner SoCs need to change their module
clocks during operation, to switch between support for 44.1 kHz and 48
kHz family sample rates. The clock rate for the module clocks is
governed by their upstream audio PLL. The module clocks themselves only
have a gate, and sometimes a divider or mux. Thus any rate changes need
to be propagated upstream.

Set the CLK_SET_RATE_PARENT flag for all audio module clocks to achieve
this.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clk/sunxi-ng/ccu-sun8i-a33.c