Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp947180iog; Fri, 17 Jun 2022 18:26:30 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v/zOGr9WA34z2ZT/XJKhH7/tHJVTKujFpzDW+KQVon7wHmTKwYmY5ApQkd/8Qg/quo1u+l X-Received: by 2002:a17:902:b08c:b0:168:f08d:4cea with SMTP id p12-20020a170902b08c00b00168f08d4ceamr12274341plr.113.1655515590678; Fri, 17 Jun 2022 18:26:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655515590; cv=none; d=google.com; s=arc-20160816; b=eN1BxzZX0vLd0XYqvLrPMqPcYbJKwRPAPjzTjWRVMuF1H6OUgdNNOQMkR3VNjb+kBY Q6MTaG1U0+YSrDo3VMswRnzV3njFGj3d1LAyAJHGoDdZ+4ct0iW2tyV78NP7PcnPukP4 oskAJWRCDjjADlJYIGQcU5WGHlTTGHyZ+1H9cQqUETykBt6xDrPYf/kVu+RTrSnWUxH/ Itt3/NywbsR3AMZvswGgZ3zVFNYP86fS2VtSofoeDdXkKULtt8ssCUH8FIi322JFHxZn d2OT11/cDlZ4ey9ChcLVh0F0NBPaK/tIWJkSNwN3T6JDo7Z9S0zcYLUu/Q8CHW6Xkrys 42mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=pVKqQ1lqgF3EkrSHUJzWYv63xAjHMBJYsr4UymAWSVw=; b=pJTTBuULe5lKeIWBvS4Z103EbnMRUYx1mhBlLhFDGR9RUaz/3H2VHGu4NCYxs1R+sV MIxOV0CU5eLXGwIc+HuPhDRMJSYBT+LAE+NpypdYZQcm2BULHxOcfNKksbVYAPbucFEj 9vjs74iAAKDvKOyvJv6F1hqOmPZBVSTBnR3Q/dnaVRcoSw+L9PbvWlYFhZUeb78ytjPD JbtCKom50coFUYV87UdOczChbWHlyKre11S/uc76lZ04CwvXCrBF2rDoAoI9VwSAmSgu C2x7OCvWOQEX2jKhtf6N8uEoxlyLgJD5YE/9isEltzN3g7jKEgswgoxApu6P4PQL+bRI ExIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gwoIvyMg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c3-20020a170902b68300b00158e566366dsi6936863pls.366.2022.06.17.18.26.15; Fri, 17 Jun 2022 18:26:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gwoIvyMg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243853AbiFRBZZ (ORCPT + 99 others); Fri, 17 Jun 2022 21:25:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229596AbiFRBZW (ORCPT ); Fri, 17 Jun 2022 21:25:22 -0400 Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6379F68996 for ; Fri, 17 Jun 2022 18:25:21 -0700 (PDT) Received: by mail-pf1-x429.google.com with SMTP id e11so5513207pfj.5 for ; Fri, 17 Jun 2022 18:25:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=pVKqQ1lqgF3EkrSHUJzWYv63xAjHMBJYsr4UymAWSVw=; b=gwoIvyMg1yJEub4U9RbN4pk370+U/FTdG0FmASXW0hglpc3ABXMvrtE7qSWFqvgK0H /nwLfhgifz4kqpEHpMon61La4pZts1Px+JOf7gLtJNpN7QTMP/ik7lUFik9j44ivgZt7 Vpf9tB/RzqSdeU3Y7pQvHf2k4Zsx8OqN/Ef0dkNeIohn/hTohnRi1TDoLKG8nScGPl4G xFBm7s5evU1LjionDVWkX7SL+EX7p1KY2J+rRjpB9rJQdj6V+shgzeq6GPuM0051F+Ja Ip/5VZsp5BI4nMGlpqMdFHirZcNr+1KOvO+OtMVAcYySLE9oBnkq6V4sKi8xLX53jXU6 BYJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=pVKqQ1lqgF3EkrSHUJzWYv63xAjHMBJYsr4UymAWSVw=; b=5Y1i+oP+m4AgAV/sgdOnFlO9+vvSj4zZsaD/WzLok0aSCHFJLr0vIanTu4J0wfetBR lv7k44eheioLH+h9MyPMMmt0ESRFbxOaV0CUvAoH06xEXxvkyJPsEq7745a3nSnuk5Wl WJ93Vfj+rIlg/CmN9AbKK90s32tF7lnL+Q548UFr/4KKJ9xQycKuTEBnOIDox7Mh9Gwp z1jdzNA6BPleMI512Rvm3HH9ce2t1nCFEAzMhJ/ZW444ZO1PBCspakC3wGoB7BJx31Z6 QD2jfM6BGEOJkx3PNTcYP8FGlef2uistjawur/O8oUfb+SkaNU0rVMOqW8cvRHEm1HU4 uQ6A== X-Gm-Message-State: AJIora+Z1l63RgqIsZ3DeHoWFk+QJjXjHoowTRNsHBtWx/PI+Op9gKvR 703PFHPrjdOPoRSGEmmedctgMg== X-Received: by 2002:a63:e74a:0:b0:3fe:7c2a:4b17 with SMTP id j10-20020a63e74a000000b003fe7c2a4b17mr11437694pgk.293.1655515520921; Fri, 17 Jun 2022 18:25:20 -0700 (PDT) Received: from [172.31.235.92] ([216.9.110.6]) by smtp.gmail.com with ESMTPSA id z9-20020a1709027e8900b00163daef3dc2sm4199943pla.84.2022.06.17.18.25.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 17 Jun 2022 18:25:20 -0700 (PDT) Message-ID: <8639e64d-c659-7090-2d0a-078fd96cfbd4@linaro.org> Date: Fri, 17 Jun 2022 18:25:17 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH 2/3] dt-bindings: usb: mtk-xhci: Allow middle optional clocks to be missing Content-Language: en-US To: =?UTF-8?B?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= , Greg Kroah-Hartman , Matthias Brugger Cc: AngeloGioacchino Del Regno , kernel@collabora.com, Chunfeng Yun , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-usb@vger.kernel.org References: <20220617222916.2435618-1-nfraprado@collabora.com> <20220617222916.2435618-3-nfraprado@collabora.com> From: Krzysztof Kozlowski In-Reply-To: <20220617222916.2435618-3-nfraprado@collabora.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, 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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 17/06/2022 15:29, NĂ­colas F. R. A. Prado wrote: > The current clock list in the binding doesn't allow for one of the > optional clocks to be missing and a subsequent clock to be present. An > example where this is an issue is in mt8192.dtsi, which has "sys_ck", > "ref_ck", "xhci_ck" and would cause dtbs_check warnings. > > Change the clock list in a way that allows the middle optional clocks to > be missing, while still guaranteeing a fixed order. The "ref_ck" is kept > as a const even though it is optional for simplicity, since it is > present in all current dts files. > > Signed-off-by: NĂ­colas F. R. A. Prado > --- > > .../devicetree/bindings/usb/mediatek,mtk-xhci.yaml | 9 +++++++-- > 1 file changed, 7 insertions(+), 2 deletions(-) > > diff --git a/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml b/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml > index 63cbc2b62d18..99a1b233ec90 100644 > --- a/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml > +++ b/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml > @@ -80,8 +80,13 @@ properties: > items: > - const: sys_ck # required, the following ones are optional > - const: ref_ck > - - const: mcu_ck > - - const: dma_ck > + - enum: > + - mcu_ck > + - dma_ck > + - xhci_ck > + - enum: > + - dma_ck > + - xhci_ck > - const: xhci_ck You allow now almost any order here, including incorrect like sys,ref,xhci,xhci,xhci. The order of clocks has to be fixed and we cannot allow flexibility. Are you sure that these clocks are actually optional (not wired to the device)? Best regards, Krzysztof