Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp265217pxu; Tue, 5 Jan 2021 10:14:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJwX/kp7+TmKqya/45flhU/KgPSY3vcazrW54Hgpd+94dxy8W0JcU4+bC2dWC0+ERDeulj6d X-Received: by 2002:aa7:d5d2:: with SMTP id d18mr1093986eds.126.1609870479301; Tue, 05 Jan 2021 10:14:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609870479; cv=none; d=google.com; s=arc-20160816; b=rXnccl878n0Vq8TjsuFI6OXi3E1Qe5alMcygxF1EHOLpDipmXXByx1I4pVK6U16T9u xezTkFGkqh0TzXX48PnIYzbECMHULNVyOF2oenpZnhEKZXa+fImr9SUj1wc8yQ7Quxwu bRuWr+O7hrZBe0H5l9oTT17hSj9NLp+an6yAkmF7xwsGfEJfSUGAUhYmFsNUBZW17JbZ LFyJhzC/HxqKomZgIa1oLO+euIkR0yEBZtVbYlm1cIuqzwuNIBlB4mgJSvF/qKd2KkJY Z00J3uXkhqfClZY4gOZXtA6CERBO9Rm4EZsG7FwxhX/HnUJSZdi1h2ag6td35ZKPJKoB x3Hg== 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:dkim-signature; bh=a/Kn/ccYO9B6uSMqLTr1Go5fme0TOHYBuapE8/4yioQ=; b=QradxwmdX6h5ivXq+bHWhUm5UNr9A2RyxRjva1ba72OQoht9rB4nVWMuu8Qq5dM4cE r8MkbDkP5++aURjzaKG9HcSxaJG4esuktqkyX2BwumRadZfs1jE4gy82Dssd+hfHwcsw 7W2l5rEoTulV7BK/c8r+mIloJ4ByHtwodZkXeFvxmPNhOwbUk8ai55h80Qp182i51GmE M1TQs7+h5E/kk4c70VFz2FMlYUAzQ9qJgOnrhWbmvLOrdVmDcRvnBeLfi9nBd320CYiQ zHhH7w0bvGty8xE+DHhSw9oze128Iyd+IHVsSDw9h30c+YHQ7m5fOymxbRu48jB/MF4R E+vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Dz7ZYIQw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u9si192844edv.418.2021.01.05.10.14.15; Tue, 05 Jan 2021 10:14:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Dz7ZYIQw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727830AbhAESMn (ORCPT + 99 others); Tue, 5 Jan 2021 13:12:43 -0500 Received: from mail.kernel.org ([198.145.29.99]:56244 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726132AbhAESMm (ORCPT ); Tue, 5 Jan 2021 13:12:42 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1791722D06; Tue, 5 Jan 2021 18:12:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609870321; bh=/reYBV40Ygz4hCARqF75dpeeGG0UhQDuHeRU1Mh/CCA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Dz7ZYIQwZi2PGezSrfZYXMAyFlGgRS3XZShhWjyXT3ufXIdHDHMXjuLt80KX6GoPf GG9vLFuw58bgfcX32hBzQHrbWIbM7IXR3efJsGv2iQnRdRw/2HGqFmSWyIJMZ/uav6 zW8xJU3VSIzNihZH289zC2LwLXOyr6xIMVOafDGE= Date: Tue, 5 Jan 2021 19:13:25 +0100 From: Greg Kroah-Hartman To: Rob Herring Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Jens Axboe , Stephen Boyd , Thierry Reding , MyungJoo Ham , Chanwoo Choi , Linus Walleij , Bartosz Golaszewski , Jonathan Cameron , Dmitry Torokhov , Thomas Gleixner , Marc Zyngier , Mauro Carvalho Chehab , Chen-Yu Tsai , Ulf Hansson , "David S. Miller" , Jakub Kicinski , Sebastian Reichel , Ohad Ben-Cohen , Bjorn Andersson , linux-arm-kernel@lists.infradead.org, linux-ide@vger.kernel.org, linux-clk@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-gpio@vger.kernel.org, linux-iio@vger.kernel.org, linux-input@vger.kernel.org, linux-media@vger.kernel.org, linux-mmc@vger.kernel.org, netdev@vger.kernel.org, linux-pm@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-riscv@lists.infradead.org, linux-serial@vger.kernel.org, alsa-devel@alsa-project.org, linux-spi@vger.kernel.org, linux-usb@vger.kernel.org Subject: Re: [PATCH] dt-bindings: Add missing array size constraints Message-ID: References: <20210104230253.2805217-1-robh@kernel.org> <20210105174008.GB1875909@robh.at.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210105174008.GB1875909@robh.at.kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 05, 2021 at 10:40:08AM -0700, Rob Herring wrote: > On Tue, Jan 05, 2021 at 02:04:14PM +0100, Greg Kroah-Hartman wrote: > > On Mon, Jan 04, 2021 at 04:02:53PM -0700, Rob Herring wrote: > > > DT properties which can have multiple entries need to specify what the > > > entries are and define how many entries there can be. In the case of > > > only a single entry, just 'maxItems: 1' is sufficient. > > > > > > Add the missing entry constraints. These were found with a modified > > > meta-schema. Unfortunately, there are a few cases where the size > > > constraints are not defined such as common bindings, so the meta-schema > > > can't be part of the normal checks. > > > > > > Cc: Jens Axboe > > > Cc: Stephen Boyd > > > Cc: Thierry Reding > > > Cc: MyungJoo Ham > > > Cc: Chanwoo Choi > > > Cc: Linus Walleij > > > Cc: Bartosz Golaszewski > > > Cc: Jonathan Cameron > > > Cc: Dmitry Torokhov > > > Cc: Thomas Gleixner > > > Cc: Marc Zyngier > > > Cc: Mauro Carvalho Chehab > > > Cc: Chen-Yu Tsai > > > Cc: Ulf Hansson > > > Cc: "David S. Miller" > > > Cc: Jakub Kicinski > > > Cc: Sebastian Reichel > > > Cc: Ohad Ben-Cohen > > > Cc: Bjorn Andersson > > > Cc: Greg Kroah-Hartman > > > Signed-off-by: Rob Herring > > > > > > > > > diff --git a/Documentation/devicetree/bindings/usb/generic-ehci.yaml b/Documentation/devicetree/bindings/usb/generic-ehci.yaml > > > index 247ef00381ea..f76b25f7fc7a 100644 > > > --- a/Documentation/devicetree/bindings/usb/generic-ehci.yaml > > > +++ b/Documentation/devicetree/bindings/usb/generic-ehci.yaml > > > @@ -83,6 +83,7 @@ properties: > > > Phandle of a companion. > > > > > > phys: > > > + maxItems: 1 > > > description: PHY specifier for the USB PHY > > > > > > phy-names: > > > diff --git a/Documentation/devicetree/bindings/usb/generic-ohci.yaml b/Documentation/devicetree/bindings/usb/generic-ohci.yaml > > > index 2178bcc401bc..8e2bd61f2075 100644 > > > --- a/Documentation/devicetree/bindings/usb/generic-ohci.yaml > > > +++ b/Documentation/devicetree/bindings/usb/generic-ohci.yaml > > > @@ -71,6 +71,7 @@ properties: > > > Overrides the detected port count > > > > > > phys: > > > + maxItems: 1 > > > description: PHY specifier for the USB PHY > > > > > > phy-names: > > > diff --git a/Documentation/devicetree/bindings/usb/ingenic,musb.yaml b/Documentation/devicetree/bindings/usb/ingenic,musb.yaml > > > index 678396eeeb78..f506225a4d57 100644 > > > --- a/Documentation/devicetree/bindings/usb/ingenic,musb.yaml > > > +++ b/Documentation/devicetree/bindings/usb/ingenic,musb.yaml > > > @@ -40,7 +40,7 @@ properties: > > > - const: mc > > > > > > phys: > > > - description: PHY specifier for the USB PHY > > > + maxItems: 1 > > > > > > usb-role-switch: > > > type: boolean > > > > Any reason you dropped the description for this entry, but not the other > > ones above? > > No, I should have dropped those too. I dropped cases of genericish > descriptions on common properties. There's nothing specific to this > binding here really. > > > > > > diff --git a/Documentation/devicetree/bindings/usb/ti,j721e-usb.yaml b/Documentation/devicetree/bindings/usb/ti,j721e-usb.yaml > > > index 388245b91a55..adce36e48bc9 100644 > > > --- a/Documentation/devicetree/bindings/usb/ti,j721e-usb.yaml > > > +++ b/Documentation/devicetree/bindings/usb/ti,j721e-usb.yaml > > > @@ -15,13 +15,14 @@ properties: > > > - const: ti,j721e-usb > > > > > > reg: > > > - description: module registers > > > + maxItems: 1 > > > > > > power-domains: > > > description: > > > PM domain provider node and an args specifier containing > > > the USB device id value. See, > > > Documentation/devicetree/bindings/soc/ti/sci-pm-domain.txt > > > + maxItems: 1 > > > > > > clocks: > > > description: Clock phandles to usb2_refclk and lpm_clk > > > > Same here, why remove the description? > > Really, the question is why keep 'description' on power-domains. Perhaps > there's a little value in the reference to sci-pm-domain.txt, so I left > it. Ok, if you are fine with this, that's ok with me, just didn't look very consistent :)