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] [day] [month] [year] [list]
Date:   Thu, 31 Mar 2022 20:09:58 +0000
From:   Chris Packham <Chris.Packham@...iedtelesis.co.nz>
To:     Rob Herring <robh@...nel.org>
CC:     Krzysztof Kozlowski <krzk@...nel.org>,
        "andrew@...n.ch" <andrew@...n.ch>,
        "ulf.hansson@...aro.org" <ulf.hansson@...aro.org>,
        "linux-arm-kernel@...ts.infradead.org" 
        <linux-arm-kernel@...ts.infradead.org>,
        "sebastian.hesselbarth@...il.com" <sebastian.hesselbarth@...il.com>,
        "gregory.clement@...tlin.com" <gregory.clement@...tlin.com>,
        "linux-mmc@...r.kernel.org" <linux-mmc@...r.kernel.org>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
        "krzk+dt@...nel.org" <krzk+dt@...nel.org>,
        "huziji@...vell.com" <huziji@...vell.com>,
        "devicetree@...r.kernel.org" <devicetree@...r.kernel.org>
Subject: Re: [PATCH v4 2/2] dt-bindings: mmc: xenon: Convert to JSON schema

Hi Rob,

On 31/03/22 03:40, Rob Herring wrote:
> On Tue, Mar 29, 2022 at 07:50:59PM +0000, Chris Packham wrote:
>> On 30/03/22 02:14, Krzysztof Kozlowski wrote:
>>> On 29/03/2022 13:50, Rob Herring wrote:
>>>> On Tue, 29 Mar 2022 13:02:31 +1300, Chris Packham wrote:
>>>>> Convert the marvell,xenon-sdhci binding to JSON schema. Currently the
>>>>> in-tree dts files don't validate because they use sdhci@ instead of mmc@
>>>>> as required by the generic mmc-controller schema.
>>>>>
>>>>> The compatible "marvell,sdhci-xenon" was not documented in the old
>>>>> binding but it accompanies the of "marvell,armada-3700-sdhci" in the
>>>>> armada-37xx SoC dtsi so this combination is added to the new binding
>>>>> document.
>>>>>
>>>>> Signed-off-by: Chris Packham <chris.packham@...iedtelesis.co.nz>
>>>>> Reviewed-by: Krzysztof Kozlowski <krzk@...nel.org>
>>>>> ---
>>>>>
>>>>> Notes:
>>>>>       Changes in v4:
>>>>>       - Add review from Krzysztof
>>>>>       - Squash in addition of marvell,sdhci-xenon with an explanation in the
>>>>>         commit message
>>>>>       Changes in v3:
>>>>>       - Don't accept ap807 without ap806
>>>>>       - Add ref: string for pad-type
>>>>>       Changes in v2:
>>>>>       - Update MAINTAINERS entry
>>>>>       - Incorporate feedback from Krzysztof
>>>>>
>>>>>    .../bindings/mmc/marvell,xenon-sdhci.txt      | 173 -----------
>>>>>    .../bindings/mmc/marvell,xenon-sdhci.yaml     | 275 ++++++++++++++++++
>>>>>    MAINTAINERS                                   |   2 +-
>>>>>    3 files changed, 276 insertions(+), 174 deletions(-)
>>>>>    delete mode 100644 Documentation/devicetree/bindings/mmc/marvell,xenon-sdhci.txt
>>>>>    create mode 100644 Documentation/devicetree/bindings/mmc/marvell,xenon-sdhci.yaml
>>>>>
>>>> My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check'
>>>> on your patch (DT_CHECKER_FLAGS is new in v5.13):
>>>>
>>>> yamllint warnings/errors:
>>>>
>>>> dtschema/dtc warnings/errors:
>>>> /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/mmc/marvell,xenon-sdhci.example.dt.yaml: mmc@...000: compatible: 'oneOf' conditional failed, one must be fixed:
>>>> 	['marvell,armada-3700-sdhci'] is too short
>>>> 	'marvell,armada-3700-sdhci' is not one of ['marvell,armada-cp110-sdhci', 'marvell,armada-ap806-sdhci']
>>>> 	'marvell,armada-ap807-sdhci' was expected
>>>> 	From schema: /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/mmc/marvell,xenon-sdhci.yaml
>>>> /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/mmc/marvell,xenon-sdhci.example.dt.yaml: mmc@...000: compatible: 'oneOf' conditional failed, one must be fixed:
>>>> 	['marvell,armada-3700-sdhci'] is too short
>>>> 	'marvell,armada-3700-sdhci' is not one of ['marvell,armada-cp110-sdhci', 'marvell,armada-ap806-sdhci']
>>>> 	'marvell,armada-ap807-sdhci' was expected
>>>> 	From schema: /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/mmc/marvell,xenon-sdhci.yaml
>>>>
>>>> doc reference errors (make refcheckdocs):
>>> Chris, your own dt binding does not pass it's check (example)...
>>>
>>> After updating the compatibles, you need to check the example. The
>>> examples are anyway duplicating common stuff, so half of them could be
>>> removed.
>> Yeah silly me. I started taking short cuts to run dt_binding_check
>> dtbs_check as one command but then the dt_bindings_check output scrolled
>> off the top of my terminal.
>>
>> As for the examples themselves I want to leave what's there as a fairly
>> direct translation of the old binding. If we consider them unnecessary
>> removing them can be done as a follow-up.
> The examples cannot have warnings/errors.
I was referring to the comment of removing examples. The v5 of this 
series addressed the error in the example.
> Rob

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ