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: <d6c612db-d4fd-e0e5-aff0-c3963322830c@collabora.com>
Date:   Thu, 12 Mar 2020 09:55:54 +0100
From:   Enric Balletbo i Serra <enric.balletbo@...labora.com>
To:     Rob Herring <robh@...nel.org>, Mark Brown <broonie@...nel.org>
Cc:     devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
        Cheng-Yi Chiang <cychiang@...omium.org>,
        Guenter Roeck <groeck@...omium.org>,
        Liam Girdwood <lgirdwood@...il.com>,
        Benson Leung <bleung@...omium.org>, alsa-devel@...a-project.org
Subject: Re: [PATCH] ASoC: dt-bindings: google,cros-ec-codec: Fix dtc warnings
 in example

Hi Rob,

On 11/3/20 21:58, Rob Herring wrote:
> Extra dtc warnings (roughly what W=1 enables) are now enabled by default
> when building the binding examples. These were fixed treewide in
> 5.6-rc5, but the newly added google,cros-ec-codec schema adds some new
> warnings:
> 
> Documentation/devicetree/bindings/sound/google,cros-ec-codec.example.dts:17.28-21.11:
> Warning (unit_address_vs_reg): /example-0/reserved_mem: node has a reg or ranges property, but no unit name
> Documentation/devicetree/bindings/sound/google,cros-ec-codec.example.dts:22.19-32.11:
> Warning (unit_address_vs_reg): /example-0/cros-ec@0: node has a unit name, but no reg property
> Documentation/devicetree/bindings/sound/google,cros-ec-codec.example.dts:26.37-31.15:
> Warning (unit_address_vs_reg): /example-0/cros-ec@...c-codec: node has a reg or ranges property, but no unit name
> 
> Fixing the above, then results in:
> 
> Documentation/devicetree/bindings/sound/google,cros-ec-codec.example.dts:26.13-23:
> Warning (reg_format): /example-0/cros-ec@0:reg: property has invalid length (4 bytes) (#address-cells == 1, #size-cells == 1)
> Documentation/devicetree/bindings/sound/google,cros-ec-codec.example.dts:27.37-32.15:
> Warning (unit_address_vs_reg): /example-0/cros-ec@...c-codec: node has a reg or ranges property, but no unit name
> 
> Fixes: eadd54c75f1e ("dt-bindings: Convert the binding file google, cros-ec-codec.txt to yaml format.")
> Cc: Cheng-Yi Chiang <cychiang@...omium.org>
> Cc: Enric Balletbo i Serra <enric.balletbo@...labora.com>
> Cc: Guenter Roeck <groeck@...omium.org>
> Cc: Liam Girdwood <lgirdwood@...il.com>
> Cc: Mark Brown <broonie@...nel.org>
> Cc: Benson Leung <bleung@...omium.org>
> Cc: alsa-devel@...a-project.org
> Signed-off-by: Rob Herring <robh@...nel.org>

Just a minor nit, but the patch looks good to me, so:

Reviewed-by: Enric Balletbo i Serra <enric.balletbo@...labora.com>


> ---
>  .../bindings/sound/google,cros-ec-codec.yaml  | 27 +++++++++++--------
>  1 file changed, 16 insertions(+), 11 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/sound/google,cros-ec-codec.yaml b/Documentation/devicetree/bindings/sound/google,cros-ec-codec.yaml
> index 94a85d0cbf43..c84e656afb0a 100644
> --- a/Documentation/devicetree/bindings/sound/google,cros-ec-codec.yaml
> +++ b/Documentation/devicetree/bindings/sound/google,cros-ec-codec.yaml
> @@ -44,19 +44,24 @@ additionalProperties: false
>  
>  examples:
>    - |
> -    reserved_mem: reserved_mem {
> +    reserved_mem: reserved-mem@...00000 {
>          compatible = "shared-dma-pool";
> -        reg = <0 0x52800000 0 0x100000>;
> +        reg = <0x52800000 0x100000>;
>          no-map;
>      };
> -    cros-ec@0 {
> -        compatible = "google,cros-ec-spi";
> -        #address-cells = <2>;
> -        #size-cells = <1>;
> -        cros_ec_codec: ec-codec {
> -            compatible = "google,cros-ec-codec";
> -            #sound-dai-cells = <1>;
> -            reg = <0x0 0x10500000 0x80000>;
> -            memory-region = <&reserved_mem>;
> +    spi {
> +        #address-cells = <1>;
> +        #size-cells = <0>;
> +        cros-ec@0 {
> +            compatible = "google,cros-ec-spi";
> +            #address-cells = <2>;
> +            #size-cells = <1>;
> +            reg = <0>;
> +            cros_ec_codec: ec-codec@...00000 {

nit: shouldn't this be just codec@...500000 to match the class? However I am not
sure codec is a class itself.

> +                compatible = "google,cros-ec-codec";
> +                #sound-dai-cells = <1>;
> +                reg = <0x0 0x10500000 0x80000>;
> +                memory-region = <&reserved_mem>;
> +            };
>          };
>      };
> 

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ