]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: qcom: q6prm: fix incorrect clk_root passed to ADSP
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Thu, 2 Mar 2023 12:29:08 +0000 (13:29 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Mar 2023 12:34:05 +0000 (13:34 +0100)
commit7ac38b9b38bdd5aeb13f2540043c46b53d41f7a8
tree781e6b7dcc6baf4fef857fa766d49cfd8a246565
parentad8535bde7bb61cf511e76fbabdb5a7c22e88bed
ASoC: qcom: q6prm: fix incorrect clk_root passed to ADSP

commit 3a91fcfbf83052ae073a524e1d69739740d74cdb upstream.

The second to last argument is clk_root (root of the clock), however the
code called q6prm_request_lpass_clock() with clk_attr instead
(copy-paste error).  This effectively was passing value of 1 as root
clock which worked on some of the SoCs (e.g. SM8450) but fails on
others, depending on the ADSP.  For example on SM8550 this "1" as root
clock is not accepted and results in errors coming from ADSP.

Fixes: 72d07a940a10 ("ASoC: qdsp6: qdsp6: q6prm: handle clk disable correctly")
Cc: <stable@vger.kernel.org>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Tested-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20230302122908.221398-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/qcom/qdsp6/q6prm.c