Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2009753iog; Sun, 19 Jun 2022 05:06:20 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vuMSqurhd/NonuBzI0YByO45yE/kWL67GBMudN78xHoLEVt22jBfdWjsn/puFu+ayctF4H X-Received: by 2002:a63:7d2:0:b0:3fc:5c30:1d95 with SMTP id 201-20020a6307d2000000b003fc5c301d95mr17248453pgh.95.1655640380234; Sun, 19 Jun 2022 05:06:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655640380; cv=none; d=google.com; s=arc-20160816; b=LyXxrdARfVEtIlid9dcWM84/TyBpVd4zxlf3ej1BN7+jbJeUcpsgjoCqZ7eWvC5aHt 8Uu2MupHSub+ojsq+J9NNw2WbxOHP5IO6T9JE1HCl2tL3vmXa79vFHHmtdaPuq3RThzt xULjwmu4/jQP3jh5NEjntH8wpOkXuxbQbSWizNoKeOk7bdbRxq+yR2UmFY6DoFrNVxd6 AtcaY+VFbFmCBncRpbDBedqtzH8OLpJt9iAyNoNQtIlae61CHor7OBDwdfv3PQsb8VOJ viPDDzZTO+2xxdlLLmqJvBQ0/bvCVB/ncHz86RybGnLXB4/YV8JXsT9plWKGaH6TLkJ6 yEnQ== 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=Yp4bmUkucrfn0YoCb3947aiyNMhaiNjLfndCRiuztxU=; b=ja7U988hJcmWYQsM3ZFy3NS0Yq79FA+F8sF7iGWppMxFViAp5W0sPQKJnu6NDjrgo8 z5awj9LMza6dqTxSvNDrJdLuv2BwBbzMHOGlDmbMjDPbgm6HoiNCVpyt7rNYVkJsQrdB oLudFG1idep7BafFOjt6wqhEOyBSXsL9NCrPJJPz8HsUGhzvjKJilS9cZcNPlHKM+JH+ AKBlNC6T/CupPerSa6+kfrXWtXXtdo8TNapO9S1fyVCkbB2ao3GOQGJJopPrn5BwrFv6 sGuzKoGrUGto0lveCz5xbOghehV8DyLKcFGVK3ayf+yX2vw98P2IDVo0QVk64n6FCqCc eXNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yr+bG3jG; 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 i7-20020a170902c94700b00163fc5e39a0si13394593pla.227.2022.06.19.05.06.05; Sun, 19 Jun 2022 05:06:20 -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=yr+bG3jG; 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 S236664AbiFSLta (ORCPT + 99 others); Sun, 19 Jun 2022 07:49:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232931AbiFSLtJ (ORCPT ); Sun, 19 Jun 2022 07:49:09 -0400 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3700311C3B for ; Sun, 19 Jun 2022 04:49:08 -0700 (PDT) Received: by mail-ed1-x536.google.com with SMTP id fd6so8814875edb.5 for ; Sun, 19 Jun 2022 04:49:08 -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=Yp4bmUkucrfn0YoCb3947aiyNMhaiNjLfndCRiuztxU=; b=yr+bG3jG4+68iQNvAiVbY3Z1gBJqsRvJGx5qiy0JF4mCyAGs2+gQW+U/llayv2QvZa JObgwL6nY/In7vN0HgMJyKOHcXvcqtzdmIISyxAbBNQcLPd/7bs5WSSXoP1BF4CC0oSj cOA/+WUR3Mjc/ZGuFAcYgKsUk8uEOUyOsnHY2Kdcj/KV2McZ7G5VwDWc+oYaFweytQiE 3DWEEJAHPlikXDtlaqwLSmEuovXWj4PGrR2gjXnxInhsq+/pVhYHn++AcQqqzmdENG9M mGqPzpp9dyG8QRwIRiVCBK/yzkGrKuwNwcUEZGSzbCoak4I6gm0aJOkIY6vumz7Ed2+i k4Hw== 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=Yp4bmUkucrfn0YoCb3947aiyNMhaiNjLfndCRiuztxU=; b=p7A66gRSQCEnwAZX/SknxzUDA9r6neZ8hvWLuJtwuV4v7QpLLZi01H4XzuQGamF50j U5dPacvYVewYb9/DbURKVZSpb7ByaLq0EzjsQUwSo+hVG4m4VALH/7JgtH85sSN21+Ap HKuv7b/yfN5h30RtCHkyN2GSu8T6sMPUbR6wrS/1lT8ClJLfeKkuiP945Ag8n0Zo6uhz 5xHV3tNUzxCn+HwLZr8lefHjOOK9/pHqQD1mS3zcygrqYz/v2+s2xIW/x8aKkSWcVhXT Sy0lN1P0LeSA0LjiLb8WjOb/X7+hLqaiHmFFOhWzMaHEilgNkNLyWyHpnlo9B/MxKnYJ B2Vw== X-Gm-Message-State: AJIora+SX6HvS7czZ8T5JFWIsG0oP8ZB94jrqp8QyE6XcwPTpX/tHWKm NhfTIwmdIg1oHYeCZZ+QBOsSnriEW5SnNg== X-Received: by 2002:aa7:cb13:0:b0:433:4985:1b54 with SMTP id s19-20020aa7cb13000000b0043349851b54mr22955689edt.182.1655639346743; Sun, 19 Jun 2022 04:49:06 -0700 (PDT) Received: from [192.168.0.206] (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id fd18-20020a056402389200b0043570d96d25sm2987288edb.95.2022.06.19.04.49.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 19 Jun 2022 04:49:06 -0700 (PDT) Message-ID: <5c7a1763-01fb-249d-a301-9164e2139ac6@linaro.org> Date: Sun, 19 Jun 2022 13:49:04 +0200 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: Chunfeng Yun , =?UTF-8?B?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= , Greg Kroah-Hartman , Matthias Brugger Cc: AngeloGioacchino Del Regno , kernel@collabora.com, 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: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 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 19/06/2022 09:40, Chunfeng Yun wrote: > On Fri, 2022-06-17 at 18:29 -0400, 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. > How about using fixed clock instead to fix the check warning? > Using enum way seems make it more complex. > That would mean the clock is not actually optional. The DTS should reflect the hardware so either you have the clock there or not. Either it is an input or not. Of course there are some exceptions (like non-controllable clock or regulator which not always has to be modeled). Best regards, Krzysztof