Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1670066rwb; Thu, 29 Sep 2022 00:03:13 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6a7pnjiTSqCeIPnSXhU6ISAg+xYxgqEbM0QgJXmfkixZFZF0q2tt0OpVBnL1XNwOe9rs8P X-Received: by 2002:a05:6402:510c:b0:451:f363:24ee with SMTP id m12-20020a056402510c00b00451f36324eemr1831624edd.156.1664434993045; Thu, 29 Sep 2022 00:03:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664434993; cv=none; d=google.com; s=arc-20160816; b=Mf21sQlgkSVkaerCJXWvJEQdmYfWB8azXx6zxotBn/eiW6DG1PGsaUC4Dm6wTUSBB4 X6WOaMkT8AAmjib7Lkqclh0dCe1X2rjLftF62HLWoqdWyN31HMcHludKf6+JE8KtNj4b nDEfy1CKuPmg5E/b6vCqmBZYX8aZ+t1FkjKWuRx93zp47wRsz0H9772e7BEstead1xkS aPpddxON4EEATU052VQTNgJEhYEuksLez8z4flO7uLvSWdh9hHPVK+AWRYqeiaYIaJQK akbGhS13fumidc/bXUQKHJwfiORt1Qno1sacEJgpvkU8zBCLLbHn+rCZPpSP9RBuA60x g7gw== 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=sLe+12DYg/MsGOLMm2PiwRBOcXOJMIlCQlWuW8Bh/Z4=; b=ERIG1tylHIXUUvrJZFXtRjgPIfKaXipeOn5/JPJ06ZYOBuskRLkYNvAMlUNZ4g9/x6 6rcpkrFGSiEIip/TAsb+cQISKcHz8Vp7RflA8KAaJQdCG86NrYRxKtW7s9K3b/8LUW/O eplyen75jGkWEu8KqfGfChshHD6TvkkDzoTQL2urHR6Yi1OBdoaUvMt6vZeWiPEjwNdY /w3quYWEuWKQsScB/zDKrwkdRyFjxi0l7uQfc8GjfYUrqPCq7erVztM6VSsocF+00r5V rZza9Vtg6tADy4BwYu6uHDGa4V7xtSJu5pjztqigoTZsdh7PWo9raIVrujoTBWPd2iCh bj5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=X0gRac3f; 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 l14-20020a170906794e00b007879bc7eacfsi4766666ejo.93.2022.09.29.00.02.47; Thu, 29 Sep 2022 00:03:13 -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=X0gRac3f; 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 S232180AbiI2GVL (ORCPT + 99 others); Thu, 29 Sep 2022 02:21:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231419AbiI2GVI (ORCPT ); Thu, 29 Sep 2022 02:21:08 -0400 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 187D15A2D6 for ; Wed, 28 Sep 2022 23:21:07 -0700 (PDT) Received: by mail-pj1-x1034.google.com with SMTP id l9-20020a17090a4d4900b00205e295400eso418226pjh.4 for ; Wed, 28 Sep 2022 23:21:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date; bh=sLe+12DYg/MsGOLMm2PiwRBOcXOJMIlCQlWuW8Bh/Z4=; b=X0gRac3fkiIlOB2YGRyfd+Ue4Rv+jxwT9mPS6EUIoElqbASd7xqUn9sqCZn+G0SQph asgx2+EpRRc+pU2dZMU+WsX9F25/8FybJXs+IJm6l9b+WDsxmZsmy4appAcS27YPaMGm xm75j2xyadmgzAHLSN0POvKmKx2DQMUbbRVQljAy1Wc8FYx7GVCMTLtMnOWmLdeYoTlO 6QTYkph7oFAPEsLnpn9H55XyEiRyvlB6fRZ5XNKRKrcyLzq6kO5Cdwr94pjl5fYuDOQL f8umul9nXybOJ4CJCHGhBck3KjH253ln+PeJ2tGH+0laVRMAlV8I71W1CMW835DJi6OE plBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=sLe+12DYg/MsGOLMm2PiwRBOcXOJMIlCQlWuW8Bh/Z4=; b=TnzHlww5aBGQdv0W803kiqdU5j+Cp69wwOi1oIqvK4/w6EGu0dZAlanF5n9VMAIvPt 4nVBNkpZF9mg1yFBTlYqm12H8HEYcS2PKpmZO1rTJML+zh9ZeRbeV4TeFlsm+CsDTHAg /OHqtrhBLwMSdJNvoDWBXSYZzvnONYbttXiWGCj3YLT26GWp2T3pnvjQvOM9CxMYuuvC DEmukhJO5l5ymDxCaBKaUIl5g46l7Ez59URAYtep3Y9vzwKVlSgs0PQd9QqDoICc4mQi ugan7iMT9RUY0IOhXsgLngELEOd7Ple9s8auMFN/xa49+MI22LJ/LaTQ3h4DefZ+OGZI 40EA== X-Gm-Message-State: ACrzQf2bMExDDFAFIZ4t/0MS9p9hgUWPlEumn5PkLN98LpHuAcVr37LR qRQj5+fXCudXu08PKWdLIFz9bQ== X-Received: by 2002:a17:902:f612:b0:178:a692:b20a with SMTP id n18-20020a170902f61200b00178a692b20amr1858371plg.55.1664432466534; Wed, 28 Sep 2022 23:21:06 -0700 (PDT) Received: from ?IPV6:2401:4900:1f3b:3adb:24f8:ac24:2282:1dc7? ([2401:4900:1f3b:3adb:24f8:ac24:2282:1dc7]) by smtp.gmail.com with ESMTPSA id n9-20020a170902e54900b0016d295888e3sm4936599plf.241.2022.09.28.23.21.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 28 Sep 2022 23:21:05 -0700 (PDT) Message-ID: <11bb755c-b608-a13f-1da1-639c6b3f18d4@linaro.org> Date: Thu, 29 Sep 2022 11:51:00 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH 3/4] dt-bindings: net: snps,dwmac: Update reg maxitems Content-Language: en-US To: Rob Herring Cc: Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, agross@kernel.org, bhupesh.linux@gmail.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Bjorn Andersson , Vinod Koul , David Miller References: <20220907204924.2040384-1-bhupesh.sharma@linaro.org> <20220907204924.2040384-4-bhupesh.sharma@linaro.org> <46087486-bacd-c408-7ead-5b120412412b@linaro.org> <20220912211447.GB1847448-robh@kernel.org> From: Bhupesh Sharma In-Reply-To: <20220912211447.GB1847448-robh@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 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 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 Hi Rob, On 9/13/22 2:44 AM, Rob Herring wrote: > On Tue, Sep 13, 2022 at 12:23:42AM +0530, Bhupesh Sharma wrote: >> On 9/8/22 8:11 PM, Krzysztof Kozlowski wrote: >>> On 07/09/2022 22:49, Bhupesh Sharma wrote: >>>> Since the Qualcomm dwmac based ETHQOS ethernet block >>>> supports 64-bit register addresses, update the >>>> reg maxitems inside snps,dwmac YAML bindings. >>> >>> Please wrap commit message according to Linux coding style / submission >>> process: >>> https://elixir.bootlin.com/linux/v5.18-rc4/source/Documentation/process/submitting-patches.rst#L586 >>> >>>> >>>> Cc: Bjorn Andersson >>>> Cc: Rob Herring >>>> Cc: Vinod Koul >>>> Cc: David Miller >>>> Signed-off-by: Bhupesh Sharma >>>> --- >>>> Documentation/devicetree/bindings/net/snps,dwmac.yaml | 2 +- >>>> 1 file changed, 1 insertion(+), 1 deletion(-) >>>> >>>> diff --git a/Documentation/devicetree/bindings/net/snps,dwmac.yaml b/Documentation/devicetree/bindings/net/snps,dwmac.yaml >>>> index 2b6023ce3ac1..f89ca308d55f 100644 >>>> --- a/Documentation/devicetree/bindings/net/snps,dwmac.yaml >>>> +++ b/Documentation/devicetree/bindings/net/snps,dwmac.yaml >>>> @@ -94,7 +94,7 @@ properties: >>>> reg: >>>> minItems: 1 >>>> - maxItems: 2 >>>> + maxItems: 4 >>> >>> Qualcomm ETHQOS schema allows only 2 in reg-names, so this does not make >>> sense for Qualcomm and there are no users of 4 items. >> >> On this platform the two reg spaces are 64-bit, whereas for other >> platforms based on dwmmac, for e.g. stm32 have 32-bit address space. > > The schema for reg is how many addr/size entries regardless of cell > sizes. > >> Without this fix I was getting the following error with 'make dtbs_check': >> >> Documentation/devicetree/bindings/net/qcom,ethqos.example.dtb: >> ethernet@20000: reg: [[0, 131072], [0, 65536], [0, 221184], [0, 256]] is too >> long >> From schema: /home/bhsharma/code/upstream/linux-bckup/linux/Documentation/devicetree/bindings/net/snps,dwmac.yaml > > The default cell sizes for examples is 1 for addr/size. If you want it > to be 2, you have to write your own parent node. But why? It's just an > example. Use 1 cell like the example originally had. Got your point. Let me revert to the original example in v2. Thanks, Bhupesh