]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: q6afe-clocks: fix reprobing of the driver
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Sat, 27 Mar 2021 09:28:57 +0000 (12:28 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 May 2021 08:50:02 +0000 (10:50 +0200)
commit6893df3753beafa5f7351228a9dd8157a57d7492
treef164e4e057f844f6703d2ee2aae8cfb7c167fd9b
parent9892d12ac1ab92e58e1de3fe1de95dd6e999bcbb
ASoC: q6afe-clocks: fix reprobing of the driver

[ Upstream commit 96fadf7e8ff49fdb74754801228942b67c3eeebd ]

Q6afe-clocks driver can get reprobed. For example if the APR services
are restarted after the firmware crash. However currently Q6afe-clocks
driver will oops because hw.init will get cleared during first _probe
call. Rewrite the driver to fill the clock data at runtime rather than
using big static array of clocks.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Fixes: 520a1c396d19 ("ASoC: q6afe-clocks: add q6afe clock controller")
Link: https://lore.kernel.org/r/20210327092857.3073879-1-dmitry.baryshkov@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
sound/soc/qcom/qdsp6/q6afe.c
sound/soc/qcom/qdsp6/q6afe.h