Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4613569rdb; Tue, 12 Dec 2023 04:52:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IGJSx0aP4Rf1mWE5oAzn29mR/UZL00igNxlpTrxvpoltVRcz/R87kaaqHu8u7qoaMSTLak+ X-Received: by 2002:a17:902:6847:b0:1d3:3eb8:3696 with SMTP id f7-20020a170902684700b001d33eb83696mr264529pln.0.1702385544729; Tue, 12 Dec 2023 04:52:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702385544; cv=none; d=google.com; s=arc-20160816; b=ahuwQqufbIBVv8AOvb/37I1F7L9/gzhTM1M/6ccFplUNWmYeBHQKVW3vOVtPy7XiPD uoQbhKJkk20S4vOO0SNg3wdFJ/7JZWkNgET4G/vKvfct1M2JwCsl10li7fH44DnIkMW4 PsDuh2W9nB9syV2qUKqPcBVLU+DrjozMhCVi9KEQdz7uPx6L8Rixl3bPY9DEScshPSTF 0U5N2Gxxs9m+tXKkoLZyhHG2lNqzdhJxZJnrq5ApH+h/6SlVZcN2PpL26DFn3bWRlMqz FogrhjA2M4P168O5MjeeZwrfDBlnCs2ohKEQeO5f63J1tJGa4ElTJlBh09QAQGrgORFm dgPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=OiQLT1KyS2c/6FByDfn019uWStgZcMlHLm0iys4Bj8I=; fh=n/7IIMEPNzp8MW81ND8IieOthIwlJjNyqWfdSXDNTbM=; b=aQxVO70PEqoJssDYoP176vCqGjzpqPDBUXGOpVn15/OMNcg/gAPBTjiWTMJdrNblm9 /+oBgoWWK0nj7okfxBJ5gTtZraTQs4mYD3m46y1wWPObjP7ItCADcD73dAFH2kO2f/bc CSLgkML7kX2aousJwyNqGyLb+9KgPRKE9GyExHKjeuKTwpwHEgl3S7iowusZaiZc+92I z4meBaBz0ZWUmq2kqTgedWQ7mNRjK9WT7gDn8MUfHybgu8nEWqpvOZYLRVpjKRjTdwnz cKUZmMtp5Koeh9OZGv4WvUqPsOq3iOr/E+ZqitPLhF4m7aSCrusB7isNt5NBqhK4g4pn Mw+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=SiYFIbid; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id l12-20020a170903120c00b001d2e6c3f144si7680049plh.14.2023.12.12.04.52.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 04:52:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=SiYFIbid; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 149CA80A223D; Tue, 12 Dec 2023 04:52:22 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376299AbjLLMwG (ORCPT + 99 others); Tue, 12 Dec 2023 07:52:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376275AbjLLMwF (ORCPT ); Tue, 12 Dec 2023 07:52:05 -0500 Received: from mail-ot1-x32b.google.com (mail-ot1-x32b.google.com [IPv6:2607:f8b0:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4B42AC; Tue, 12 Dec 2023 04:52:11 -0800 (PST) Received: by mail-ot1-x32b.google.com with SMTP id 46e09a7af769-6d9dbe224bbso4144293a34.2; Tue, 12 Dec 2023 04:52:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702385531; x=1702990331; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=OiQLT1KyS2c/6FByDfn019uWStgZcMlHLm0iys4Bj8I=; b=SiYFIbidN6gWbF2HZKrl3Z836W08qISpmsT4CNrXhzdBwT0S8ZhWcEqXucDGjDDPPN F9mDfV/XdvHwIcaoJAl0HatcgzHVAR1P+qoTa1HZlx0EvdOo7YWvN3VIggS9BUGLIj75 VvwTKFDh5UJAWrx16A3W3ldyhtyImhOQ5bCuFf42kl2wFMyyWVrIXayc5n4kt5EXWV9Y AeDbvlQtk5SrOQgFGeXZrG7h7zTqGsHO23vjGAFaCVH6Iva8+2RRavKfh+t6JxoryIzo GfCVw6HdT7qw5vD22MaNXahdiG915RSR0J+JUusoHCa+aLiEqZ3FTeKwPaARs0CrnH80 p+Tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702385531; x=1702990331; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=OiQLT1KyS2c/6FByDfn019uWStgZcMlHLm0iys4Bj8I=; b=LfR9ThmVN6S76nQTC67UDTg1lPLeUodstXwqESEih5GTyWuxPIAnpwQz2yAc3LZvla urU5boa4v++VOj2A50peGEwe4iYHxLdkvBemfx/CAqE2suhQZL/sgBfukuNPoFzyANwH C6Vy8XXw1lFJTT1+OY7ubKZd7/WYzUlG9XSo7nk0pvA/B3kasIOfzcYyDaxYE5849KFZ MYna2Rxwd0wGTTwzE+D90nMJg/UnGDEMFvitr3gYPE5qQW0QgbbY2jufzDei3nRfd78W 6aEoUGjh36crXDZFTJ2AxCIb22L4RSC8huy73Z3wzfjZv3rJq182Kg1I4FHzEOc/HVyJ IPkQ== X-Gm-Message-State: AOJu0YxnZGbuKrLLT0urZDSRiDMDcTtA03uz73i5iY3FX41c/n45XsLX d+Q/uuINwcq3WuU1V9v7nW6lVthdzQt/L5S8t0c= X-Received: by 2002:a05:6871:d102:b0:1fb:75a:de63 with SMTP id pi2-20020a056871d10200b001fb075ade63mr6447333oac.81.1702385531019; Tue, 12 Dec 2023 04:52:11 -0800 (PST) MIME-Version: 1.0 References: <20231204144429.45197-1-linux.amoon@gmail.com> <20231204144429.45197-2-linux.amoon@gmail.com> <20231206135311.GA2043711-robh@kernel.org> <21673bfd-bb87-4c7d-a53f-337c263f3a00@linaro.org> <604e653d-c1e2-45c7-b121-8a6b4be5c6bb@linaro.org> <1a78d453-62a2-410a-a40f-1ff0c2b62e86@linaro.org> <2e688f4e-11d7-4f8e-b8ec-58f4a97304a8@linaro.org> <8f28ea77-b3d0-445e-8d8e-80f980775f89@linaro.org> In-Reply-To: From: Anand Moon Date: Tue, 12 Dec 2023 18:21:55 +0530 Message-ID: Subject: Re: [PATCH v6 1/2] dt-bindings: usb: Add the binding example for the Genesys Logic GL3523 hub To: Krzysztof Kozlowski Cc: Rob Herring , Greg Kroah-Hartman , Krzysztof Kozlowski , Conor Dooley , Icenowy Zheng , Neil Armstrong , linux-amlogic@lists.infradead.org, Conor Dooley , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 12 Dec 2023 04:52:22 -0800 (PST) Hi Krzysztof, On Tue, 12 Dec 2023 at 17:22, Krzysztof Kozlowski wrote: > > On 12/12/2023 12:37, Anand Moon wrote: > > > > Here is the list of warnings I observed with this patch > > > > DTC_CHK Documentation/devicetree/bindings/usb/nvidia,tegra186-xusb.example.dtb > > /home/amoon/mainline/linux-amlogic-6.y-devel/Documentation/devicetree/bindings/usb/usb-device.example.dtb: > > hub@1: 'vdd-supply' is a required property > > You always require the property, but it is not valid for some devices. > Just require it only where it is applicable (in if:then: clause). > I had already done this check many times before. my v6 original patch was doing the same and it passed all the tests but since I updated the required field it not parsing correctly. required: - compatible - reg - vdd-supply - reset-gpios - peer-hub > > > from schema $id: http://devicetree.org/schemas/usb/genesys,gl850g.yaml# > > /home/amoon/mainline/linux-amlogic-6.y-devel/Documentation/devicetree/bindings/usb/usb-device.example.dtb: > > hub@1: 'reset-gpios' is a required property > > from schema $id: http://devicetree.org/schemas/usb/genesys,gl850g.yaml# > > /home/amoon/mainline/linux-amlogic-6.y-devel/Documentation/devicetree/bindings/usb/usb-device.example.dtb: > > hub@1: 'peer-hub' is a required property > > ... > > >>> + - if: > >>> + properties: > >>> + compatible: > >>> + contains: > >>> + enum: > >>> + - usb5e3,610 > >>> + - usb5e3,620 > >>> + then: > >>> + properties: > >>> + peer-hub: true > >>> + vdd-supply: true > >> > >> Drop this if:, redundant. > >> > > No, this does not resolve the above issue. > > It shouldn't resolve it, not related. > ok > > Best regards, > Krzysztof Thanks -Anand