* [PATCH 2/2] arm64: dts: qcom: sm8550: correct TX Soundwire clock
2023-11-29 14:05 [PATCH 1/2] arm64: dts: qcom: sm8450: correct TX Soundwire clock Krzysztof Kozlowski
@ 2023-11-29 14:05 ` Krzysztof Kozlowski
2023-11-29 14:35 ` Konrad Dybcio
2023-11-30 9:52 ` Neil Armstrong
2023-11-29 14:26 ` [PATCH 1/2] arm64: dts: qcom: sm8450: " Konrad Dybcio
` (2 subsequent siblings)
3 siblings, 2 replies; 10+ messages in thread
From: Krzysztof Kozlowski @ 2023-11-29 14:05 UTC (permalink / raw)
To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Srinivas Kandagatla,
linux-arm-msm, devicetree, linux-kernel
Cc: Krzysztof Kozlowski, Neil Armstrong
The TX Soundwire controller should take clock from TX macro codec, not
VA macro codec clock, otherwise the clock stays disabled. This looks
like a copy-paste issue, because the SC8280xp code uses here correctly
clock from TX macro. The VA macro clock is already consumed by TX macro
codec, thus it won't be disabled by this change.
Fixes: 61b006389bb7 ("arm64: dts: qcom: sm8550: add Soundwire controllers")
Reported-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
arch/arm64/boot/dts/qcom/sm8550.dtsi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/qcom/sm8550.dtsi b/arch/arm64/boot/dts/qcom/sm8550.dtsi
index 52e8f4c52426..2fd3faacf554 100644
--- a/arch/arm64/boot/dts/qcom/sm8550.dtsi
+++ b/arch/arm64/boot/dts/qcom/sm8550.dtsi
@@ -2199,7 +2199,7 @@ swr2: soundwire@6d30000 {
interrupts = <GIC_SPI 496 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 520 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "core", "wakeup";
- clocks = <&lpass_vamacro>;
+ clocks = <&lpass_txmacro>;
clock-names = "iface";
label = "TX";
--
2.34.1
^ permalink raw reply related [flat|nested] 10+ messages in thread* Re: [PATCH 2/2] arm64: dts: qcom: sm8550: correct TX Soundwire clock
2023-11-29 14:05 ` [PATCH 2/2] arm64: dts: qcom: sm8550: " Krzysztof Kozlowski
@ 2023-11-29 14:35 ` Konrad Dybcio
2023-11-30 8:06 ` Krzysztof Kozlowski
2023-11-30 9:52 ` Neil Armstrong
1 sibling, 1 reply; 10+ messages in thread
From: Konrad Dybcio @ 2023-11-29 14:35 UTC (permalink / raw)
To: Krzysztof Kozlowski, Andy Gross, Bjorn Andersson, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Srinivas Kandagatla,
linux-arm-msm, devicetree, linux-kernel
Cc: Neil Armstrong
On 29.11.2023 15:05, Krzysztof Kozlowski wrote:
> The TX Soundwire controller should take clock from TX macro codec, not
> VA macro codec clock, otherwise the clock stays disabled. This looks
> like a copy-paste issue, because the SC8280xp code uses here correctly
> clock from TX macro. The VA macro clock is already consumed by TX macro
> codec, thus it won't be disabled by this change.
>
> Fixes: 61b006389bb7 ("arm64: dts: qcom: sm8550: add Soundwire controllers")
> Reported-by: Neil Armstrong <neil.armstrong@linaro.org>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
Interestingly, downstream 8550 has
qcom,use-clk-id = <VA_CORE_CLK>;
which doesn't seem to be used in techpack
Konrad
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [PATCH 2/2] arm64: dts: qcom: sm8550: correct TX Soundwire clock
2023-11-29 14:35 ` Konrad Dybcio
@ 2023-11-30 8:06 ` Krzysztof Kozlowski
2023-11-30 9:17 ` Neil Armstrong
2023-11-30 10:11 ` Konrad Dybcio
0 siblings, 2 replies; 10+ messages in thread
From: Krzysztof Kozlowski @ 2023-11-30 8:06 UTC (permalink / raw)
To: Konrad Dybcio, Andy Gross, Bjorn Andersson, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Srinivas Kandagatla,
linux-arm-msm, devicetree, linux-kernel
Cc: Neil Armstrong
On 29/11/2023 15:35, Konrad Dybcio wrote:
> On 29.11.2023 15:05, Krzysztof Kozlowski wrote:
>> The TX Soundwire controller should take clock from TX macro codec, not
>> VA macro codec clock, otherwise the clock stays disabled. This looks
>> like a copy-paste issue, because the SC8280xp code uses here correctly
>> clock from TX macro. The VA macro clock is already consumed by TX macro
>> codec, thus it won't be disabled by this change.
>>
>> Fixes: 61b006389bb7 ("arm64: dts: qcom: sm8550: add Soundwire controllers")
>> Reported-by: Neil Armstrong <neil.armstrong@linaro.org>
>> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>> ---
> Interestingly, downstream 8550 has
>
> qcom,use-clk-id = <VA_CORE_CLK>;
>
> which doesn't seem to be used in techpack
In which node? I see it in the va-macro node, not the tx-macro.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [PATCH 2/2] arm64: dts: qcom: sm8550: correct TX Soundwire clock
2023-11-30 8:06 ` Krzysztof Kozlowski
@ 2023-11-30 9:17 ` Neil Armstrong
2023-11-30 10:11 ` Konrad Dybcio
1 sibling, 0 replies; 10+ messages in thread
From: Neil Armstrong @ 2023-11-30 9:17 UTC (permalink / raw)
To: Krzysztof Kozlowski, Konrad Dybcio, Andy Gross, Bjorn Andersson,
Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Srinivas Kandagatla, linux-arm-msm, devicetree, linux-kernel
On 30/11/2023 09:06, Krzysztof Kozlowski wrote:
> On 29/11/2023 15:35, Konrad Dybcio wrote:
>> On 29.11.2023 15:05, Krzysztof Kozlowski wrote:
>>> The TX Soundwire controller should take clock from TX macro codec, not
>>> VA macro codec clock, otherwise the clock stays disabled. This looks
>>> like a copy-paste issue, because the SC8280xp code uses here correctly
>>> clock from TX macro. The VA macro clock is already consumed by TX macro
>>> codec, thus it won't be disabled by this change.
>>>
>>> Fixes: 61b006389bb7 ("arm64: dts: qcom: sm8550: add Soundwire controllers")
>>> Reported-by: Neil Armstrong <neil.armstrong@linaro.org>
>>> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>>> ---
>> Interestingly, downstream 8550 has
>>
>> qcom,use-clk-id = <VA_CORE_CLK>;
>>
>> which doesn't seem to be used in techpack
>
> In which node? I see it in the va-macro node, not the tx-macro.
Same I only see this in the va_macro.
Neil
>
> Best regards,
> Krzysztof
>
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [PATCH 2/2] arm64: dts: qcom: sm8550: correct TX Soundwire clock
2023-11-30 8:06 ` Krzysztof Kozlowski
2023-11-30 9:17 ` Neil Armstrong
@ 2023-11-30 10:11 ` Konrad Dybcio
1 sibling, 0 replies; 10+ messages in thread
From: Konrad Dybcio @ 2023-11-30 10:11 UTC (permalink / raw)
To: Krzysztof Kozlowski, Andy Gross, Bjorn Andersson, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Srinivas Kandagatla,
linux-arm-msm, devicetree, linux-kernel
Cc: Neil Armstrong
On 30.11.2023 09:06, Krzysztof Kozlowski wrote:
> On 29/11/2023 15:35, Konrad Dybcio wrote:
>> On 29.11.2023 15:05, Krzysztof Kozlowski wrote:
>>> The TX Soundwire controller should take clock from TX macro codec, not
>>> VA macro codec clock, otherwise the clock stays disabled. This looks
>>> like a copy-paste issue, because the SC8280xp code uses here correctly
>>> clock from TX macro. The VA macro clock is already consumed by TX macro
>>> codec, thus it won't be disabled by this change.
>>>
>>> Fixes: 61b006389bb7 ("arm64: dts: qcom: sm8550: add Soundwire controllers")
>>> Reported-by: Neil Armstrong <neil.armstrong@linaro.org>
>>> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>>> ---
>> Interestingly, downstream 8550 has
>>
>> qcom,use-clk-id = <VA_CORE_CLK>;
>>
>> which doesn't seem to be used in techpack
>
> In which node? I see it in the va-macro node, not the tx-macro.
You're right, I misread this.
Konrad
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 2/2] arm64: dts: qcom: sm8550: correct TX Soundwire clock
2023-11-29 14:05 ` [PATCH 2/2] arm64: dts: qcom: sm8550: " Krzysztof Kozlowski
2023-11-29 14:35 ` Konrad Dybcio
@ 2023-11-30 9:52 ` Neil Armstrong
1 sibling, 0 replies; 10+ messages in thread
From: Neil Armstrong @ 2023-11-30 9:52 UTC (permalink / raw)
To: Krzysztof Kozlowski, Andy Gross, Bjorn Andersson, Konrad Dybcio,
Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Srinivas Kandagatla, linux-arm-msm, devicetree, linux-kernel
On 29/11/2023 15:05, Krzysztof Kozlowski wrote:
> The TX Soundwire controller should take clock from TX macro codec, not
> VA macro codec clock, otherwise the clock stays disabled. This looks
> like a copy-paste issue, because the SC8280xp code uses here correctly
> clock from TX macro. The VA macro clock is already consumed by TX macro
> codec, thus it won't be disabled by this change.
>
> Fixes: 61b006389bb7 ("arm64: dts: qcom: sm8550: add Soundwire controllers")
> Reported-by: Neil Armstrong <neil.armstrong@linaro.org>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
> arch/arm64/boot/dts/qcom/sm8550.dtsi | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm64/boot/dts/qcom/sm8550.dtsi b/arch/arm64/boot/dts/qcom/sm8550.dtsi
> index 52e8f4c52426..2fd3faacf554 100644
> --- a/arch/arm64/boot/dts/qcom/sm8550.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sm8550.dtsi
> @@ -2199,7 +2199,7 @@ swr2: soundwire@6d30000 {
> interrupts = <GIC_SPI 496 IRQ_TYPE_LEVEL_HIGH>,
> <GIC_SPI 520 IRQ_TYPE_LEVEL_HIGH>;
> interrupt-names = "core", "wakeup";
> - clocks = <&lpass_vamacro>;
> + clocks = <&lpass_txmacro>;
> clock-names = "iface";
> label = "TX";
>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 1/2] arm64: dts: qcom: sm8450: correct TX Soundwire clock
2023-11-29 14:05 [PATCH 1/2] arm64: dts: qcom: sm8450: correct TX Soundwire clock Krzysztof Kozlowski
2023-11-29 14:05 ` [PATCH 2/2] arm64: dts: qcom: sm8550: " Krzysztof Kozlowski
@ 2023-11-29 14:26 ` Konrad Dybcio
2023-11-30 9:52 ` Neil Armstrong
2023-12-03 4:54 ` (subset) " Bjorn Andersson
3 siblings, 0 replies; 10+ messages in thread
From: Konrad Dybcio @ 2023-11-29 14:26 UTC (permalink / raw)
To: Krzysztof Kozlowski, Andy Gross, Bjorn Andersson, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Srinivas Kandagatla,
linux-arm-msm, devicetree, linux-kernel
Cc: Neil Armstrong
On 29.11.2023 15:05, Krzysztof Kozlowski wrote:
> The TX Soundwire controller should take clock from TX macro codec, not
> VA macro codec clock, otherwise the clock stays disabled. This looks
> like a copy-paste issue, because the SC8280xp code uses here correctly
> clock from TX macro. The VA macro clock is already consumed by TX macro
> codec, thus it won't be disabled by this change.
>
> Fixes: 14341e76dbc7 ("arm64: dts: qcom: sm8450: add Soundwire and LPASS")
> Reported-by: Neil Armstrong <neil.armstrong@linaro.org>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>
> ---
Acked-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Konrad
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [PATCH 1/2] arm64: dts: qcom: sm8450: correct TX Soundwire clock
2023-11-29 14:05 [PATCH 1/2] arm64: dts: qcom: sm8450: correct TX Soundwire clock Krzysztof Kozlowski
2023-11-29 14:05 ` [PATCH 2/2] arm64: dts: qcom: sm8550: " Krzysztof Kozlowski
2023-11-29 14:26 ` [PATCH 1/2] arm64: dts: qcom: sm8450: " Konrad Dybcio
@ 2023-11-30 9:52 ` Neil Armstrong
2023-12-03 4:54 ` (subset) " Bjorn Andersson
3 siblings, 0 replies; 10+ messages in thread
From: Neil Armstrong @ 2023-11-30 9:52 UTC (permalink / raw)
To: Krzysztof Kozlowski, Andy Gross, Bjorn Andersson, Konrad Dybcio,
Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Srinivas Kandagatla, linux-arm-msm, devicetree, linux-kernel
On 29/11/2023 15:05, Krzysztof Kozlowski wrote:
> The TX Soundwire controller should take clock from TX macro codec, not
> VA macro codec clock, otherwise the clock stays disabled. This looks
> like a copy-paste issue, because the SC8280xp code uses here correctly
> clock from TX macro. The VA macro clock is already consumed by TX macro
> codec, thus it won't be disabled by this change.
>
> Fixes: 14341e76dbc7 ("arm64: dts: qcom: sm8450: add Soundwire and LPASS")
> Reported-by: Neil Armstrong <neil.armstrong@linaro.org>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>
> ---
>
> Considering that in Downstream, the TX Soundwire is part of VA macro,
> there is no clear reference code explaining this. Let's just go with
> SC8280xp approach because it seems reasonable, but don't ask me "why".
> ---
> arch/arm64/boot/dts/qcom/sm8450.dtsi | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm64/boot/dts/qcom/sm8450.dtsi b/arch/arm64/boot/dts/qcom/sm8450.dtsi
> index a305f8c03f9e..28207c7423f0 100644
> --- a/arch/arm64/boot/dts/qcom/sm8450.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sm8450.dtsi
> @@ -2314,7 +2314,7 @@ swr2: soundwire@33b0000 {
> <GIC_SPI 520 IRQ_TYPE_LEVEL_HIGH>;
> interrupt-names = "core", "wakeup";
>
> - clocks = <&vamacro>;
> + clocks = <&txmacro>;
> clock-names = "iface";
> label = "TX";
>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: (subset) [PATCH 1/2] arm64: dts: qcom: sm8450: correct TX Soundwire clock
2023-11-29 14:05 [PATCH 1/2] arm64: dts: qcom: sm8450: correct TX Soundwire clock Krzysztof Kozlowski
` (2 preceding siblings ...)
2023-11-30 9:52 ` Neil Armstrong
@ 2023-12-03 4:54 ` Bjorn Andersson
3 siblings, 0 replies; 10+ messages in thread
From: Bjorn Andersson @ 2023-12-03 4:54 UTC (permalink / raw)
To: Andy Gross, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Srinivas Kandagatla, linux-arm-msm, devicetree,
linux-kernel, Krzysztof Kozlowski
Cc: Neil Armstrong
On Wed, 29 Nov 2023 15:05:36 +0100, Krzysztof Kozlowski wrote:
> The TX Soundwire controller should take clock from TX macro codec, not
> VA macro codec clock, otherwise the clock stays disabled. This looks
> like a copy-paste issue, because the SC8280xp code uses here correctly
> clock from TX macro. The VA macro clock is already consumed by TX macro
> codec, thus it won't be disabled by this change.
>
>
> [...]
Applied, thanks!
[1/2] arm64: dts: qcom: sm8450: correct TX Soundwire clock
commit: 20e886590a310665244a354e3b693b881544edec
[2/2] arm64: dts: qcom: sm8550: correct TX Soundwire clock
commit: ead0f132fc494b46fcd94788456f9b264fd631bb
Best regards,
--
Bjorn Andersson <andersson@kernel.org>
^ permalink raw reply [flat|nested] 10+ messages in thread