From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 413E2C433E7 for ; Tue, 13 Oct 2020 15:46:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 013F9251FF for ; Tue, 13 Oct 2020 15:46:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731144AbgJMPqJ (ORCPT ); Tue, 13 Oct 2020 11:46:09 -0400 Received: from mail.baikalelectronics.com ([87.245.175.226]:41536 "EHLO mail.baikalelectronics.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727830AbgJMPqJ (ORCPT ); Tue, 13 Oct 2020 11:46:09 -0400 Received: from localhost (unknown [127.0.0.1]) by mail.baikalelectronics.ru (Postfix) with ESMTP id 2F6A58030867; Tue, 13 Oct 2020 15:46:07 +0000 (UTC) X-Virus-Scanned: amavisd-new at baikalelectronics.ru Received: from mail.baikalelectronics.ru ([127.0.0.1]) by localhost (mail.baikalelectronics.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JtZOFWp1UD6R; Tue, 13 Oct 2020 18:46:05 +0300 (MSK) Date: Tue, 13 Oct 2020 18:45:58 +0300 From: Serge Semin To: Rob Herring CC: Serge Semin , Mathias Nyman , Felipe Balbi , Greg Kroah-Hartman , Alexey Malahov , Pavel Parkhomenko , Andy Gross , Bjorn Andersson , Manu Gautam , Roger Quadros , Lad Prabhakar , Yoshihiro Shimoda , Neil Armstrong , Kevin Hilman , , , Subject: Re: [PATCH 14/18] dt-bindings: usb: dwc3: Add Frame Length Adj restrictions Message-ID: <20201013154558.cmz4iheaxfe44ago@mobilestation> References: <20201010224121.12672-1-Sergey.Semin@baikalelectronics.ru> <20201010224121.12672-15-Sergey.Semin@baikalelectronics.ru> <20201013123859.GD3269269@bogus> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20201013123859.GD3269269@bogus> X-ClientProxiedBy: MAIL.baikal.int (192.168.51.25) To mail (192.168.51.25) Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Archived-At: List-Archive: List-Post: On Tue, Oct 13, 2020 at 07:38:59AM -0500, Rob Herring wrote: > On Sun, Oct 11, 2020 at 01:41:17AM +0300, Serge Semin wrote: > > In accordance with the IP core databook the > > snps,quirk-frame-length-adjustment property can be set within [0, 0x3F]. > > Let's make sure the DT schema applies a correct restriction on the > > property. > > > > Signed-off-by: Serge Semin > > --- > > Documentation/devicetree/bindings/usb/snps,dwc3.yaml | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/usb/snps,dwc3.yaml b/Documentation/devicetree/bindings/usb/snps,dwc3.yaml > > index 36d4b8060d7c..f1e6c3dab1ff 100644 > > --- a/Documentation/devicetree/bindings/usb/snps,dwc3.yaml > > +++ b/Documentation/devicetree/bindings/usb/snps,dwc3.yaml > > @@ -226,6 +226,8 @@ properties: > > length adjustment when the fladj_30mhz_sdbnd signal is invalid or > > incorrect. > > $ref: /schemas/types.yaml#/definitions/uint32 > > + minimum: 0 > > + maximum: 0x3f > > It's fine if you add the constraints during the conversion. Ok. I'll keep it in mind next time.) -Sergey > > > > > snps,rx-thr-num-pkt-prd: > > description: | > > -- > > 2.27.0 > >