ASoC: q6afe-clocks: Add missing parent clock rate
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Fri, 4 Dec 2020 16:42:28 +0000 (16:42 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Dec 2020 10:53:36 +0000 (11:53 +0100)
commit54919a7153240810f62a0b378a9b97560374e617
tree2d178ee721e6e07247247eeec81c6a8556675afd
parent7403022a695ab3f32a3958e72ed4b8224c2ffba1
ASoC: q6afe-clocks: Add missing parent clock rate

[ Upstream commit 7e20ae1208daaf6dad85c2dcb968fc590b6f3b99 ]

setting clock rate on child clocks without a parent clock rate will
result in zero clk rate for child. This also means that when audio
is started dsp will attempt to access registers without enabling
clock resulting in board boot up.

Fix this by adding the missing parent clock rate.

Fixes: 520a1c396d196 ("ASoC: q6afe-clocks: add q6afe clock controller")
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20201204164228.1826-1-srinivas.kandagatla@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/qcom/qdsp6/q6afe-clocks.c