lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <171b980d-9c50-4891-86dc-e30d712f5384@kernel.org>
Date: Tue, 27 May 2025 13:58:44 +0200
From: Krzysztof Kozlowski <krzk@...nel.org>
To: Prasad Kumpatla <quic_pkumpatl@...cinc.com>,
 Bjorn Andersson <andersson@...nel.org>,
 Linus Walleij <linus.walleij@...aro.org>, Rob Herring <robh@...nel.org>,
 Krzysztof Kozlowski <krzk+dt@...nel.org>, Conor Dooley
 <conor+dt@...nel.org>, Srinivas Kandagatla <srini@...nel.org>,
 Liam Girdwood <lgirdwood@...il.com>, Mark Brown <broonie@...nel.org>,
 Konrad Dybcio <konradybcio@...nel.org>
Cc: cros-qcom-dts-watchers@...omium.org, linux-arm-msm@...r.kernel.org,
 linux-gpio@...r.kernel.org, devicetree@...r.kernel.org,
 linux-kernel@...r.kernel.org, linux-sound@...r.kernel.org,
 kernel@....qualcomm.com, Mohammad Rafi Shaik <quic_mohs@...cinc.com>
Subject: Re: [PATCH v4 2/8] ASoC: dt-bindings: qcom: Manage clock settings for
 ADSP solution

On 27/05/2025 13:12, Prasad Kumpatla wrote:
> From: Mohammad Rafi Shaik <quic_mohs@...cinc.com>
> 
> Manage clock settings for ADSP solution and document the clock properties
> on sc7280 lpass pincontrol node which is required for ADSP based
> solution.
> 
> Signed-off-by: Mohammad Rafi Shaik <quic_mohs@...cinc.com>
> Co-developed-by: Prasad Kumpatla <quic_pkumpatl@...cinc.com>
> Signed-off-by: Prasad Kumpatla <quic_pkumpatl@...cinc.com>
> ---

Nothing in cover letter explained what was happening with this patch.
Provide changelog under --- in such case.

>  .../qcom,sc7280-lpass-lpi-pinctrl.yaml        | 10 ++++++++
>  .../bindings/sound/qcom,lpass-va-macro.yaml   | 12 +++++++---
>  .../bindings/sound/qcom,lpass-wsa-macro.yaml  | 24 ++++++++++++++++---

Split patches per subsystem. Pinctrl is not ASoC.

>  3 files changed, 40 insertions(+), 6 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,sc7280-lpass-lpi-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,sc7280-lpass-lpi-pinctrl.yaml
> index 08801cc4e476..b1270124bfe3 100644
> --- a/Documentation/devicetree/bindings/pinctrl/qcom,sc7280-lpass-lpi-pinctrl.yaml
> +++ b/Documentation/devicetree/bindings/pinctrl/qcom,sc7280-lpass-lpi-pinctrl.yaml
> @@ -20,6 +20,16 @@ properties:
>    reg:
>      maxItems: 2
>  
> +  clocks:
> +    items:
> +      - description: LPASS Core voting clock
> +      - description: LPASS Audio voting clock
> +
> +  clock-names:
> +    items:
> +      - const: core
> +      - const: audio
> +
>  patternProperties:
>    "-state$":
>      oneOf:
> diff --git a/Documentation/devicetree/bindings/sound/qcom,lpass-va-macro.yaml b/Documentation/devicetree/bindings/sound/qcom,lpass-va-macro.yaml
> index f41deaa6f4df..92b97c214060 100644
> --- a/Documentation/devicetree/bindings/sound/qcom,lpass-va-macro.yaml
> +++ b/Documentation/devicetree/bindings/sound/qcom,lpass-va-macro.yaml
> @@ -78,10 +78,16 @@ allOf:
>      then:
>        properties:
>          clocks:
> -          maxItems: 1
> +          minItems: 1
> +          maxItems: 3
>          clock-names:
> -          items:
> -            - const: mclk
> +          oneOf:
> +            - items:   # for ADSP based platforms
> +                - const: mclk
> +                - const: macro
> +                - const: dcodec
> +            - items:   # for ADSP bypass based platforms
> +                - const: mclk

This device always receives same amount of clocks. Hardware is not
different if you decide to not use ADSP.

>  
>    - if:
>        properties:
> diff --git a/Documentation/devicetree/bindings/sound/qcom,lpass-wsa-macro.yaml b/Documentation/devicetree/bindings/sound/qcom,lpass-wsa-macro.yaml
> index 9082e363c709..6a999ed484e7 100644
> --- a/Documentation/devicetree/bindings/sound/qcom,lpass-wsa-macro.yaml
> +++ b/Documentation/devicetree/bindings/sound/qcom,lpass-wsa-macro.yaml
> @@ -35,11 +35,11 @@ properties:
>      const: 0
>  
>    clocks:
> -    minItems: 4
> +    minItems: 3
>      maxItems: 6
>  
>    clock-names:
> -    minItems: 4
> +    minItems: 3
>      maxItems: 6
>  
>    clock-output-names:
> @@ -59,12 +59,30 @@ required:
>  
>  allOf:
>    - $ref: dai-common.yaml#
> -
>    - if:
>        properties:
>          compatible:
>            enum:
>              - qcom,sc7280-lpass-wsa-macro
> +    then:
> +      properties:
> +        clock-names:
> +          oneOf:
> +            - items:   # for ADSP based platforms
> +                - const: mclk
> +                - const: npl
> +                - const: macro
> +                - const: dcodec
> +                - const: fsgen
> +            - items:   # for ADSP bypass based platforms
> +                - const: mclk
> +                - const: npl
> +                - const: fsgen

This silently breaks ABI. Third clock is macro.


Best regards,
Krzysztof

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ