Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3010194rwb; Sun, 20 Nov 2022 05:55:45 -0800 (PST) X-Google-Smtp-Source: AA0mqf5CFdpmTy1DyrHRY0UUZPuhZeVQVn6iqCeTeVrqVUBreYYWMuyZK/b28go/cpy/YvglQkD9 X-Received: by 2002:a17:90b:188c:b0:218:8088:c44 with SMTP id mn12-20020a17090b188c00b0021880880c44mr13120830pjb.172.1668952545451; Sun, 20 Nov 2022 05:55:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668952545; cv=none; d=google.com; s=arc-20160816; b=Fx/OhH6odButhQuI7BHKi2GrcKxVOJ6D3KiTqHza3Y53IIOW8IVXPBIH3TzKxxoXwK O2yCulxpegTmj5NVczlV7QmlMfjcznsfOMS9c0SD6WMwi5kYZu2CuKieZCbBymmKRIH5 nt3cBH7pKVeAevrHq5iIeOOBDWSZ++6VLoK7qHAnwEvsjMRB189gCLo22AoAxqGSSV4F bFLFxGQT7PofactsP9SzbjSO5Oim7Fcqkg6lGlCfWcwFuVrGwW0mA3gK8SOOLPzfwERG c2H5WhoyjL/1xGd21diF9SxaWNPECJ5UQ27OcSCQwmOZvveJHP9aO/dDRjdTc4VVImP0 Q44A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=R3o7MxftPnsiuByCDpeTAo1VzY2DRAHijDZ+Q9Ek5VE=; b=Mlvnqw5/apMN/kRJ3e0bslLbB+Cxra4OA4qRraS51UOo352Jq8CAPuFQFZuZaGb8l/ sZoJYXUrmLk5XSLsh3BXFDm81XKQuY5tdY9c4RxVl4HFojWlSalUZ+ZPIvFYyVcuv60P MGscodYUI+3lLqUpVTPy4h+uFIueWTnDxdF1mHjKd3RIroXcvzPLo7sHbSBY58Ap0HQK GZnOt1Aeu088alcQfsGnKLqWYKZmdb3UsBp3nAc+/gzDoyQCbYcgBKZBGLRoJ8eh9gUz 7a/jAT/qI2oOZB5kH4R+GMB7glwjvZki78lMVqmD+00yVcLoiL6SizgnnedOVBPQxm9B n/7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=JIVFY4ro; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f4-20020a056a00228400b00537b1bc9683si8882492pfe.36.2022.11.20.05.55.33; Sun, 20 Nov 2022 05:55:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=JIVFY4ro; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229633AbiKTNxS (ORCPT + 93 others); Sun, 20 Nov 2022 08:53:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229524AbiKTNxP (ORCPT ); Sun, 20 Nov 2022 08:53:15 -0500 Received: from mail-qk1-x736.google.com (mail-qk1-x736.google.com [IPv6:2607:f8b0:4864:20::736]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E553E032; Sun, 20 Nov 2022 05:53:11 -0800 (PST) Received: by mail-qk1-x736.google.com with SMTP id k2so6504003qkk.7; Sun, 20 Nov 2022 05:53:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=R3o7MxftPnsiuByCDpeTAo1VzY2DRAHijDZ+Q9Ek5VE=; b=JIVFY4robx7oRRUQfCLInbCxqPNNQRhFvRFnSzYIldrdG2Je2WB2jAJK7by2FAyGkd AclJ4+pXvNKd3bNZrE1MOULb31JbFqHgy5mXs4qao1kSwz+0d7uXTIk7E8t7rzKZgE+C svWAWmtiT1mr6y8ZLgSxKiiFC+DqvkDkZWvb5uAqYhf01luNS1B3nwOfHl/0VuJ+eZEN NMvaeM7Mfii8P4clfnTRfFf0udrY44fA0mGlLxkhnv7c0dDeJ/eVlbkxawEYq9dBiQw5 tKxoSnSrS2k7jerbcuo6Vzh9DzzMOXTXQWwsaWsJYrGVMPtjX3UyjfW1PyvR/BacjkLC Z5lA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=R3o7MxftPnsiuByCDpeTAo1VzY2DRAHijDZ+Q9Ek5VE=; b=QeASsXc7VrgZLViaS6FkG8360Cy71a3zECntKcuiEbP3aFZknnJpuMkVXCnx0w0IeR DCMV+PWRaGp5fjW1Ux3V6zfaJc0WFzpWoqlbvmXXNqO9OS2zCApBdG7c6kuSg0/+btku lv4fGT67iaIEFtqTYi+0CiHsnbB9LHG6HQtXOQ0gUvJSITV66bSP6NJQoFMhnhE+gXWv 6D6v08S5s8sQqTsAWLKAEFwuFGSVtnzAmEHmkAsa77da0m6cCVCRoJootnaEaPHOlT/l p7H3ClNFQfFxDkspII37YsaaFzwBNW2o6/SQ15rf/JwZiM/jCoI0vtqlyDWQFIpardwT Gfjw== X-Gm-Message-State: ANoB5pllgWw2Nax09psLNaoWOAqRV1e+anzjguu3Iqyi9uuujP7+FTdo QZODEt2pacUXmWKsb800NMdxKDrwkAI= X-Received: by 2002:a05:620a:1427:b0:6f9:ffc7:a9e4 with SMTP id k7-20020a05620a142700b006f9ffc7a9e4mr838228qkj.277.1668952390120; Sun, 20 Nov 2022 05:53:10 -0800 (PST) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id s6-20020a05620a254600b006e07228ed53sm6523055qko.18.2022.11.20.05.53.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Nov 2022 05:53:09 -0800 (PST) Sender: Guenter Roeck Date: Sun, 20 Nov 2022 05:53:08 -0800 From: Guenter Roeck To: Rob Herring Cc: Ilia Lin , Andy Gross , Bjorn Andersson , Konrad Dybcio , "Rafael J. Wysocki" , Viresh Kumar , Krzysztof Kozlowski , Jean Delvare , Yangtao Li , Nishanth Menon , Stephen Boyd , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Sergio Paracuellos , Ryder Lee , Jianjun Wang , Bjorn Helgaas , Matthias Brugger , Marek Vasut , Yoshihiro Shimoda , Liam Girdwood , Mark Brown , Javier Martinez Canillas , Thierry Reding , Jonathan Hunter , Maxime Ripard , Daniel Mack , Matti Vaittinen , Kuninori Morimoto , Krzysztof Kozlowski , linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-pci@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-renesas-soc@vger.kernel.org, alsa-devel@alsa-project.org, linux-spi@vger.kernel.org, linux-tegra@vger.kernel.org Subject: Re: [PATCH] dt-bindings: Add missing start and/or end of line regex anchors Message-ID: <20221120135308.GA1787641@roeck-us.net> References: <20221118223728.1721589-1-robh@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221118223728.1721589-1-robh@kernel.org> X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 18, 2022 at 04:37:27PM -0600, Rob Herring wrote: > json-schema patterns by default will match anywhere in a string, so > typically we want at least the start or end anchored. Fix the obvious > cases where the anchors were forgotten. > > Signed-off-by: Rob Herring > Acked-by: Sergio Paracuellos > Acked-by: Mark Brown > --- > .../devicetree/bindings/cpufreq/qcom-cpufreq-nvmem.yaml | 2 +- > Documentation/devicetree/bindings/hwmon/adt7475.yaml | 4 ++-- For hwmon: Acked-by: Guenter Roeck > .../bindings/opp/allwinner,sun50i-h6-operating-points.yaml | 4 ++-- > .../devicetree/bindings/pci/mediatek,mt7621-pcie.yaml | 2 +- > .../devicetree/bindings/pci/renesas,pci-rcar-gen2.yaml | 2 +- > Documentation/devicetree/bindings/regulator/max8660.yaml | 2 +- > .../devicetree/bindings/regulator/maxim,max77802.yaml | 2 +- > Documentation/devicetree/bindings/regulator/regulator.yaml | 2 +- > .../devicetree/bindings/regulator/rohm,bd9576-regulator.yaml | 2 +- > Documentation/devicetree/bindings/sound/renesas,rsnd.yaml | 2 +- > .../devicetree/bindings/spi/nvidia,tegra210-quad.yaml | 2 +- > 11 files changed, 13 insertions(+), 13 deletions(-) > > diff --git a/Documentation/devicetree/bindings/cpufreq/qcom-cpufreq-nvmem.yaml b/Documentation/devicetree/bindings/cpufreq/qcom-cpufreq-nvmem.yaml > index a11e1b867379..3c00ad09eeaa 100644 > --- a/Documentation/devicetree/bindings/cpufreq/qcom-cpufreq-nvmem.yaml > +++ b/Documentation/devicetree/bindings/cpufreq/qcom-cpufreq-nvmem.yaml > @@ -38,7 +38,7 @@ properties: > type: object > > patternProperties: > - 'cpu@[0-9a-f]+': > + '^cpu@[0-9a-f]+$': > type: object > > properties: > diff --git a/Documentation/devicetree/bindings/hwmon/adt7475.yaml b/Documentation/devicetree/bindings/hwmon/adt7475.yaml > index ea595102a86e..051c976ab711 100644 > --- a/Documentation/devicetree/bindings/hwmon/adt7475.yaml > +++ b/Documentation/devicetree/bindings/hwmon/adt7475.yaml > @@ -61,7 +61,7 @@ patternProperties: > $ref: /schemas/types.yaml#/definitions/uint32 > enum: [0, 1] > > - "adi,pin(5|10)-function": > + "^adi,pin(5|10)-function$": > description: | > Configures the function for pin 5 on the adi,adt7473 and adi,adt7475. Or > pin 10 on the adi,adt7476 and adi,adt7490. > @@ -70,7 +70,7 @@ patternProperties: > - pwm2 > - smbalert# > > - "adi,pin(9|14)-function": > + "^adi,pin(9|14)-function$": > description: | > Configures the function for pin 9 on the adi,adt7473 and adi,adt7475. Or > pin 14 on the adi,adt7476 and adi,adt7490 > diff --git a/Documentation/devicetree/bindings/opp/allwinner,sun50i-h6-operating-points.yaml b/Documentation/devicetree/bindings/opp/allwinner,sun50i-h6-operating-points.yaml > index 385b0692261c..51f62c3ae194 100644 > --- a/Documentation/devicetree/bindings/opp/allwinner,sun50i-h6-operating-points.yaml > +++ b/Documentation/devicetree/bindings/opp/allwinner,sun50i-h6-operating-points.yaml > @@ -41,7 +41,7 @@ required: > - nvmem-cells > > patternProperties: > - "opp-[0-9]+": > + "^opp-[0-9]+$": > type: object > > properties: > @@ -49,7 +49,7 @@ patternProperties: > clock-latency-ns: true > > patternProperties: > - "opp-microvolt-.*": true > + "^opp-microvolt-speed[0-9]$": true > > required: > - opp-hz > diff --git a/Documentation/devicetree/bindings/pci/mediatek,mt7621-pcie.yaml b/Documentation/devicetree/bindings/pci/mediatek,mt7621-pcie.yaml > index d60f43fd9c5a..e63e6458cea8 100644 > --- a/Documentation/devicetree/bindings/pci/mediatek,mt7621-pcie.yaml > +++ b/Documentation/devicetree/bindings/pci/mediatek,mt7621-pcie.yaml > @@ -31,7 +31,7 @@ properties: > maxItems: 2 > > patternProperties: > - 'pcie@[0-2],0': > + '^pcie@[0-2],0$': > type: object > $ref: /schemas/pci/pci-bus.yaml# > > diff --git a/Documentation/devicetree/bindings/pci/renesas,pci-rcar-gen2.yaml b/Documentation/devicetree/bindings/pci/renesas,pci-rcar-gen2.yaml > index 0f18cceba3d5..5a0d64d3ae6b 100644 > --- a/Documentation/devicetree/bindings/pci/renesas,pci-rcar-gen2.yaml > +++ b/Documentation/devicetree/bindings/pci/renesas,pci-rcar-gen2.yaml > @@ -65,7 +65,7 @@ properties: > maxItems: 1 > > patternProperties: > - 'usb@[0-1],0': > + '^usb@[0-1],0$': > type: object > > description: > diff --git a/Documentation/devicetree/bindings/regulator/max8660.yaml b/Documentation/devicetree/bindings/regulator/max8660.yaml > index 9c038698f880..4d550ca396eb 100644 > --- a/Documentation/devicetree/bindings/regulator/max8660.yaml > +++ b/Documentation/devicetree/bindings/regulator/max8660.yaml > @@ -24,7 +24,7 @@ properties: > type: object > > patternProperties: > - "regulator-.+": > + "^regulator-.+$": > $ref: "regulator.yaml#" > > additionalProperties: false > diff --git a/Documentation/devicetree/bindings/regulator/maxim,max77802.yaml b/Documentation/devicetree/bindings/regulator/maxim,max77802.yaml > index 71138c611b6c..b704f05ea454 100644 > --- a/Documentation/devicetree/bindings/regulator/maxim,max77802.yaml > +++ b/Documentation/devicetree/bindings/regulator/maxim,max77802.yaml > @@ -77,7 +77,7 @@ patternProperties: > regulator-initial-mode: false > > patternProperties: > - regulator-state-(standby|mem|disk): > + "^regulator-state-(standby|mem|disk)$": > type: object > additionalProperties: true > properties: > diff --git a/Documentation/devicetree/bindings/regulator/regulator.yaml b/Documentation/devicetree/bindings/regulator/regulator.yaml > index 6e8aa9eed3aa..53b81d8a2d41 100644 > --- a/Documentation/devicetree/bindings/regulator/regulator.yaml > +++ b/Documentation/devicetree/bindings/regulator/regulator.yaml > @@ -231,7 +231,7 @@ patternProperties: > ".*-supply$": > description: Input supply phandle(s) for this node > > - regulator-state-(standby|mem|disk): > + "^regulator-state-(standby|mem|disk)$": > type: object > description: > sub-nodes for regulator state in Standby, Suspend-to-RAM, and > diff --git a/Documentation/devicetree/bindings/regulator/rohm,bd9576-regulator.yaml b/Documentation/devicetree/bindings/regulator/rohm,bd9576-regulator.yaml > index 7cb74cc8c5d9..54be194bb244 100644 > --- a/Documentation/devicetree/bindings/regulator/rohm,bd9576-regulator.yaml > +++ b/Documentation/devicetree/bindings/regulator/rohm,bd9576-regulator.yaml > @@ -21,7 +21,7 @@ description: | > regulator-voutl1, regulator-vouts1 > > patternProperties: > - "regulator-.+": > + "^regulator-.+$": > type: object > description: > Properties for single regulator. > diff --git a/Documentation/devicetree/bindings/sound/renesas,rsnd.yaml b/Documentation/devicetree/bindings/sound/renesas,rsnd.yaml > index 679a246dd666..7df40c38e865 100644 > --- a/Documentation/devicetree/bindings/sound/renesas,rsnd.yaml > +++ b/Documentation/devicetree/bindings/sound/renesas,rsnd.yaml > @@ -115,7 +115,7 @@ properties: > ports: > $ref: /schemas/graph.yaml#/properties/ports > patternProperties: > - port(@[0-9a-f]+)?: > + '^port(@[0-9a-f]+)?$': > $ref: audio-graph-port.yaml# > unevaluatedProperties: false > > diff --git a/Documentation/devicetree/bindings/spi/nvidia,tegra210-quad.yaml b/Documentation/devicetree/bindings/spi/nvidia,tegra210-quad.yaml > index 6b733e5c1163..899100e783c9 100644 > --- a/Documentation/devicetree/bindings/spi/nvidia,tegra210-quad.yaml > +++ b/Documentation/devicetree/bindings/spi/nvidia,tegra210-quad.yaml > @@ -48,7 +48,7 @@ properties: > - const: tx > > patternProperties: > - "@[0-9a-f]+": > + "@[0-9a-f]+$": > type: object > > properties: