Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2531288pxu; Mon, 7 Dec 2020 08:53:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJyJMigONh7KJ7kc9yU0h4M75aeI0a+S6slP87mxpclp/bVdMGQv8ftG5Wy1Sqy5ipyN+/r9 X-Received: by 2002:a17:906:c45a:: with SMTP id ck26mr19715800ejb.200.1607359985325; Mon, 07 Dec 2020 08:53:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607359985; cv=none; d=google.com; s=arc-20160816; b=K83rgFWYAEKBZosy2gp0VP7sczdUrGGM2/l1fmuc6YSMV99ohYPDEWbfsLLu3nhWNg jWN4Zx2zK6gRfK6nJGp9pr7WNqN4Bfi48keb2y+lRMp9gcTqeX7vkgzV/EgaL6iZHMfV /iUinUalFadBKrBui4YNplO1GibkaLw8In17W3yRJdkInuWnCqEB+kl/6x4JOzy1cvX0 kCZGqsmocTkmdBEB1ltNgqd3i0MWjT0SA2/9tiMb+HYa6MhXxw8dMgTkuHC1QNuDo7yZ HXi80u1V6G7cd967aZ6hIZRUj9Pj6wrPb/SObvSJdKvzgfjujjc532eLHPiUTFtrGZEh d02g== 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; bh=sVqHnk5+Qd48rsQgEdxe7AzLNS+jRVeavbI0MHrpgH8=; b=BEpovGZXbvehXVwKYYV4sZbmL8ei9agkmNM5nQT0hCOM/AMm+tgc1Xqc51fIUXo5EC C+bQOAgEvSX1yy2oEzoXxnztkD+gwxn19OvrKq1mcSt446x98WTZmWZJVMoVh0sL+JNg F9ZWZ23Mw1vnOT/D/R7GSMuUEhqTTUeGGfqdAHJAUny2eRTwlpE4yjNjxZ/DfeGvIMNF g99MToU6Kp7EFjvl1CxYWXzZMZxH6J8t8jtBianzo0/9panR8ejjrJhyQBeG8rAlkY4D /2LPrfgPjQCS8UnoxgT7dbA1A44wSd7AU/TGyZ6XL7g9kUFknawDcHtZT2YBPS97ETXd 00NA== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t20si8469884edw.31.2020.12.07.08.52.41; Mon, 07 Dec 2020 08:53:05 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727176AbgLGQvA (ORCPT + 99 others); Mon, 7 Dec 2020 11:51:00 -0500 Received: from mail-oi1-f193.google.com ([209.85.167.193]:42822 "EHLO mail-oi1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726000AbgLGQvA (ORCPT ); Mon, 7 Dec 2020 11:51:00 -0500 Received: by mail-oi1-f193.google.com with SMTP id l200so16056907oig.9; Mon, 07 Dec 2020 08:50:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=sVqHnk5+Qd48rsQgEdxe7AzLNS+jRVeavbI0MHrpgH8=; b=mhFKflBCMObZSH17lQMjW+k3zK24dBGsXUr6Y+btuZdO16J3yUt5JGOsFD3bRKdbS9 /9h38T7Ow3YgKGoIbdFiUYxxOf/LpMq041vSSXtMED5zSBru666D31v+uh8P8VKUPuQ9 ACeV179mAd/+Fn0PwYjttm+I/PdpTjKoKSkcgC190EzdtH/LPva/UpRvksLmBIXXh32C 6/KIWuiYiXQ0uPSCqGhul7li4HxzaSyvQCGgp7LGL8cyaAJRuJ2I7ueprfXaAxut3yih 8og4+gIPJePZ6B2mYKiBbMVbAen8s23gjE7S5DfiUtuCYGmwn4oetotp38irmw31Kl2i 41gQ== X-Gm-Message-State: AOAM532Boizf4foSujcvyXZQ2ZWR4Xu6P951zRGk+MHYSa0DbpVwmzoI aS7nr3692EcwoUDLalx2PA== X-Received: by 2002:aca:ccc1:: with SMTP id c184mr10424948oig.121.1607359813295; Mon, 07 Dec 2020 08:50:13 -0800 (PST) Received: from xps15 (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id j62sm2730022otc.49.2020.12.07.08.50.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Dec 2020 08:50:12 -0800 (PST) Received: (nullmailer pid 421441 invoked by uid 1000); Mon, 07 Dec 2020 16:50:10 -0000 Date: Mon, 7 Dec 2020 10:50:10 -0600 From: Rob Herring To: Serge Semin Cc: Alexey Malahov , linux-usb@vger.kernel.org, Yoshihiro Shimoda , linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-snps-arc@lists.infradead.org, Greg Kroah-Hartman , Mathias Nyman , devicetree@vger.kernel.org, Bjorn Andersson , Kevin Hilman , Ahmad Zainie , Pavel Parkhomenko , Krzysztof Kozlowski , Roger Quadros , linux-kernel@vger.kernel.org, Chunfeng Yun , Neil Armstrong , Lad Prabhakar , Andy Gross , Felipe Balbi , Rob Herring , Manu Gautam , Serge Semin , Martin Blumenstingl Subject: Re: [PATCH v5 01/19] dt-bindings: usb: usb-hcd: Detach generic USB controller properties Message-ID: <20201207165010.GB420349@robh.at.kernel.org> References: <20201205152427.29537-1-Sergey.Semin@baikalelectronics.ru> <20201205152427.29537-2-Sergey.Semin@baikalelectronics.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201205152427.29537-2-Sergey.Semin@baikalelectronics.ru> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 05 Dec 2020 18:24:08 +0300, Serge Semin wrote: > There can be three distinctive types of the USB controllers: USB hosts, > USB peripherals/gadgets and USB OTG, which can switch from one role to > another. In order to have that hierarchy handled in the DT binding files, > we need to collect common properties in a common DT schema and specific > properties in dedicated schemas. Seeing the usb-hcd.yaml DT schema is > dedicated for the USB host controllers only, let's move some common > properties from there into the usb.yaml schema. So the later would be > available to evaluate all currently supported types of the USB > controllers. > > While at it add an explicit "additionalProperties: true" into the > usb-hcd.yaml as setting the additionalProperties/unevaluateProperties > properties is going to be get mandatory soon. > > Signed-off-by: Serge Semin > > --- > > Changelog v4: > - This is a new patch created as a result of the comment left > by Chunfeng Yun in v3 > > Changelog v5: > - Discard duplicated additionalProperties property definition. > --- > .../devicetree/bindings/usb/usb-hcd.yaml | 14 ++------- > .../devicetree/bindings/usb/usb.yaml | 29 +++++++++++++++++++ > 2 files changed, 31 insertions(+), 12 deletions(-) > create mode 100644 Documentation/devicetree/bindings/usb/usb.yaml > My bot found errors running 'make dt_binding_check' on your patch: yamllint warnings/errors: dtschema/dtc warnings/errors: schemas/usb/usb-hcd.yaml: ignoring, error in schema: /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/usb/usb-hcd.yaml: 'anyOf' conditional failed, one must be fixed: 'properties' is a required property 'patternProperties' is a required property schemas/usb/usb-hcd.yaml: ignoring, error in schema: /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/usb/usb-hcd.yaml: ignoring, error in schema: warning: no schema found in file: ./Documentation/devicetree/bindings/usb/usb-hcd.yaml schemas/usb/usb-hcd.yaml: ignoring, error in schema: dt-validate: recursion error: Check for prior errors in a referenced schema schemas/usb/usb-hcd.yaml: ignoring, error in schema: dt-validate: recursion error: Check for prior errors in a referenced schema schemas/usb/usb-hcd.yaml: ignoring, error in schema: dt-validate: recursion error: Check for prior errors in a referenced schema schemas/usb/usb-hcd.yaml: ignoring, error in schema: dt-validate: recursion error: Check for prior errors in a referenced schema schemas/usb/usb-hcd.yaml: ignoring, error in schema: dt-validate: recursion error: Check for prior errors in a referenced schema dt-validate: recursion error: Check for prior errors in a referenced schema See https://patchwork.ozlabs.org/patch/1411574 The base for the patch is generally the last rc1. Any dependencies should be noted. If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date: pip3 install dtschema --upgrade Please check and re-submit.