Re: [PATCH 1/4] dt-bindings: Add missing 'unevaluatedProperties'
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: Re: [PATCH 1/4] dt-bindings: Add missing 'unevaluatedProperties'
- From: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>
- Date: Tue, 6 Oct 2020 09:37:43 +0200
- Cc: "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" <devicetree@xxxxxxxxxxxxxxx>, Linux Kernel Mailing List <linux-kernel@xxxxxxxxxxxxxxx>, Andrew Lunn <andrew@xxxxxxx>, Ulf Hansson <ulf.hansson@xxxxxxxxxx>, USB list <linux-usb@xxxxxxxxxxxxxxx>, Peter Meerwald-Stadler <pmeerw@xxxxxxxxxx>, Sam Ravnborg <sam@xxxxxxxxxxxx>, Linux PWM List <linux-pwm@xxxxxxxxxxxxxxx>, linux-iio@xxxxxxxxxxxxxxx, Viresh Kumar <vireshk@xxxxxxxxxx>, Linus Walleij <linus.walleij@xxxxxxxxxx>, linux-pci <linux-pci@xxxxxxxxxxxxxxx>, DRI Development <dri-devel@xxxxxxxxxxxxxxxxxxxxx>, Sebastian Reichel <sre@xxxxxxxxxx>, linux-ide@xxxxxxxxxxxxxxx, Thierry Reding <thierry.reding@xxxxxxxxx>, Srinivas Kandagatla <srinivas.kandagatla@xxxxxxxxxx>, Laurent Pinchart <laurent.pinchart@xxxxxxxxxxxxxxxx>, Pavel Machek <pavel@xxxxxx>, Miquel Raynal <miquel.raynal@xxxxxxxxxxx>, linux-riscv <linux-riscv@xxxxxxxxxxxxxxxxxxx>, Lee Jones <lee.jones@xxxxxxxxxx>, linux-clk <linux-clk@xxxxxxxxxxxxxxx>, linux-leds@xxxxxxxxxxxxxxx, Vignesh Raghavendra <vigneshr@xxxxxx>, linux-rtc@xxxxxxxxxxxxxxx, Lars-Peter Clausen <lars@xxxxxxxxxx>, Marc Zyngier <maz@xxxxxxxxxx>, Daniel Lezcano <daniel.lezcano@xxxxxxxxxx>, Krzysztof Kozlowski <krzk@xxxxxxxxxx>, Chanwoo Choi <cw00.choi@xxxxxxxxxxx>, MyungJoo Ham <myungjoo.ham@xxxxxxxxxxx>, "open list:SERIAL DRIVERS" <linux-serial@xxxxxxxxxxxxxxx>, linux-input@xxxxxxxxxxxxxxx, Jakub Kicinski <kuba@xxxxxxxxxx>, Zhang Rui <rui.zhang@xxxxxxxxx>, "open list:BROADCOM NVRAM DRIVER" <linux-mips@xxxxxxxxxxxxxxx>, Vivien Didelot <vivien.didelot@xxxxxxxxx>, Wolfgang Grandegger <wg@xxxxxxxxxxxxxx>, Linux Media Mailing List <linux-media@xxxxxxxxxxxxxxx>, linux-hwmon@xxxxxxxxxxxxxxx, Albert Ou <aou@xxxxxxxxxxxxxxxxx>, Jason Cooper <jason@xxxxxxxxxxxxxx>, Linux PM list <linux-pm@xxxxxxxxxxxxxxx>, linux-can@xxxxxxxxxxxxxxx, "open list:GPIO SUBSYSTEM" <linux-gpio@xxxxxxxxxxxxxxx>, Mark Brown <broonie@xxxxxxxxxx>, Marc Kleine-Budde <mkl@xxxxxxxxxxxxxx>, Paul Walmsley <paul.walmsley@xxxxxxxxxx>, Bjorn Helgaas <bhelgaas@xxxxxxxxxx>, Thomas Gleixner <tglx@xxxxxxxxxxxxx>, Mauro Carvalho Chehab <mchehab@xxxxxxxxxx>, Linux ARM <linux-arm-kernel@xxxxxxxxxxxxxxxxxxx>, Jens Axboe <axboe@xxxxxxxxx>, Alessandro Zummo <a.zummo@xxxxxxxxxxxx>, Linux Watchdog Mailing List <linux-watchdog@xxxxxxxxxxxxxxx>, Thomas Bogendoerfer <tsbogend@xxxxxxxxxxxxxxxx>, Mathieu Poirier <mathieu.poirier@xxxxxxxxxx>, Stephen Boyd <sboyd@xxxxxxxxxx>, Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>, Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx>, Linux MMC List <linux-mmc@xxxxxxxxxxxxxxx>, Liam Girdwood <lgirdwood@xxxxxxxxx>, linux-spi <linux-spi@xxxxxxxxxxxxxxx>, Linux I2C <linux-i2c@xxxxxxxxxxxxxxx>, Vinod Koul <vkoul@xxxxxxxxxx>, Palmer Dabbelt <palmer@xxxxxxxxxxx>, Wim Van Sebroeck <wim@xxxxxxxxxxxxxxxxxx>, Richard Weinberger <richard@xxxxxx>, dmaengine <dmaengine@xxxxxxxxxxxxxxx>, MTD Maling List <linux-mtd@xxxxxxxxxxxxxxxxxxx>, "David S. Miller" <davem@xxxxxxxxxxxxx>, Jonathan Cameron <jic23@xxxxxxxxxx>, Heiner Kallweit <hkallweit1@xxxxxxxxx>
- In-reply-to: <20201005183830.486085-2-robh@kernel.org>
- References: <20201005183830.486085-1-robh@kernel.org> <20201005183830.486085-2-robh@kernel.org>
Hi Rob,
On Mon, Oct 5, 2020 at 8:39 PM Rob Herring <robh@xxxxxxxxxx> wrote:
> This doesn't yet do anything in the tools, but make it explicit so we can
> check either 'unevaluatedProperties' or 'additionalProperties' is present
> in schemas.
>
> 'unevaluatedProperties' is appropriate when including another schema (via
> '$ref') and all possible properties and/or child nodes are not
> explicitly listed in the schema with the '$ref'.
>
> This is in preparation to add a meta-schema to check for missing
> 'unevaluatedProperties' or 'additionalProperties'. This has been a
> constant source of review issues.
>
> Signed-off-by: Rob Herring <robh@xxxxxxxxxx>
Thanks for your patch!
> Documentation/devicetree/bindings/bus/renesas,bsc.yaml | 2 ++
> .../bindings/memory-controllers/renesas,rpc-if.yaml | 2 ++
> Documentation/devicetree/bindings/net/renesas,ether.yaml | 2 ++
> Documentation/devicetree/bindings/serial/renesas,hscif.yaml | 2 ++
> Documentation/devicetree/bindings/serial/renesas,sci.yaml | 2 ++
> Documentation/devicetree/bindings/serial/renesas,scif.yaml | 2 ++
> Documentation/devicetree/bindings/serial/renesas,scifa.yaml | 2 ++
> Documentation/devicetree/bindings/serial/renesas,scifb.yaml | 2 ++
> Documentation/devicetree/bindings/spi/renesas,hspi.yaml | 2 ++
> Documentation/devicetree/bindings/spi/renesas,rspi.yaml | 2 ++
> Documentation/devicetree/bindings/spi/renesas,sh-msiof.yaml | 2 ++
Acked-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>
> --- a/Documentation/devicetree/bindings/net/renesas,ether.yaml
> +++ b/Documentation/devicetree/bindings/net/renesas,ether.yaml
> @@ -85,6 +85,8 @@ required:
> - clocks
> - pinctrl-0
>
> +unevaluatedProperties: false
This one has received an "additionalProperties: false" in commit
41506bff84f1563e ("dt-bindings: net: renesas, ether: Improve schema validation")
in net-next, which you probably want to remove.
> +
> examples:
> # Lager board
> - |
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
[Index of Archives]
[Linux Kernel]
[Linux ARM (vger)]
[Linux ARM MSM]
[Linux Omap]
[Linux Arm]
[Linux Tegra]
[Fedora ARM]
[Linux for Samsung SOC]
[eCos]
[Linux Fastboot]
[Gcc Help]
[Git]
[DCCP]
[IETF Announce]
[Security]
[Linux MIPS]
[Yosemite Campsites]
|