Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 247D1C636D4 for ; Tue, 7 Feb 2023 07:59:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230399AbjBGH7Q (ORCPT ); Tue, 7 Feb 2023 02:59:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230156AbjBGH7N (ORCPT ); Tue, 7 Feb 2023 02:59:13 -0500 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92E6D2C65C for ; Mon, 6 Feb 2023 23:59:12 -0800 (PST) Received: by mail-wm1-x331.google.com with SMTP id u10so7338482wmj.3 for ; Mon, 06 Feb 2023 23:59:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=o7VB0jzwnOxKfmTOOzDR17bwgY03oYhE2KBFynIQKYk=; b=jAx6zmTdhp+G9FV94pkDTLjS8skfz6TZbOO0uBKFi+LDNSNV8QtcIY+RtU83JITlZT vcpbwxilx8Ir4QSMnsWmyKjFTIAgewWI2Ad/rWk4jESbPk6xKQKo6c7OtBNSJmfSsGAZ v2JvS/tM1IouLaI0ZaXwAFIbIkK3Ul6zwLJiIiFrbeIJ/SKwbV0E2u//69bmC+O6vflC fk4g96py9Fs7kRxnoozdgQCJgg1X1ALSurzAEzHbVgsy/WrxtbrO2YOdSoRhVjVR9Dqi 1MioNeydHl0K90eHgsYjp1gbMO7PDE2wfGWMiEUFjgjUz3/+Cqy6p9J7/HdaUfyVo0Jc e6+Q== 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:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=o7VB0jzwnOxKfmTOOzDR17bwgY03oYhE2KBFynIQKYk=; b=z4ODMu6bvRyrY8kbT3gY+Irk/vaUQfB623HtmaI4TdJAb+s8R2L9WgzPOZPgGB86ej Bp4jNwscWps4j2Y+DS4xKdmACPdqmlowRuhqugKjWoe2k/9Cj4eTHyWK8pxCb4q2u1a9 DNJGTC/uZFCY7mNesCcFsGQDEN0pjFA9NT5aT2D/aRcOnHoe3D2rIlGXtsanduXqMgEe +qim5nyCV8Hx3M0dEHg3IFpRN2lQ+MdejZ5Kl9Gw8in6Yqg5NZuMLRlNoWl7tAiv8iQN TDToJoleA5CQXd01TJ/+8CIRC0I4k/fu3uq64330aEriNFlVpjFK/jdWkMtnO+lHquas gMpQ== X-Gm-Message-State: AO0yUKXxtebCI/qF/PtZzNVLjYr/cYLGglfgXkIJDcv8jZn6RjPhAxG2 zgNlvYFqDE1WxtG73RT9OpGyzQ== X-Google-Smtp-Source: AK7set+izeJf1L9+viuy6hL3eXG0OPxOYCFMp/qcAnZZhl4TTkIhcl0lIgta0AjT+ch0CYmfrPlIhA== X-Received: by 2002:a05:600c:4a9a:b0:3dc:5b48:ee5 with SMTP id b26-20020a05600c4a9a00b003dc5b480ee5mr2266222wmp.2.1675756751053; Mon, 06 Feb 2023 23:59:11 -0800 (PST) Received: from [192.168.1.109] ([178.197.216.144]) by smtp.gmail.com with ESMTPSA id o37-20020a05600c512500b003c6bbe910fdsm19929143wms.9.2023.02.06.23.59.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 06 Feb 2023 23:59:10 -0800 (PST) Message-ID: Date: Tue, 7 Feb 2023 08:59:08 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [PATCH v4 2/7] dt-bindings: net: snps,dwmac: Update the maxitems number of resets and reset-names To: yanhong wang , linux-riscv@lists.infradead.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Emil Renner Berthing , Richard Cochran , Andrew Lunn , Heiner Kallweit , Peter Geis References: <20230118061701.30047-1-yanhong.wang@starfivetech.com> <20230118061701.30047-3-yanhong.wang@starfivetech.com> <15a87640-d8c7-d7aa-bdfb-608fa2e497cb@linaro.org> Content-Language: en-US From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/02/2023 03:43, yanhong wang wrote: > > > On 2023/1/18 23:47, Krzysztof Kozlowski wrote: >> On 18/01/2023 07:16, Yanhong Wang wrote: >>> Some boards(such as StarFive VisionFive v2) require more than one value >>> which defined by resets property, so the original definition can not >>> meet the requirements. In order to adapt to different requirements, >>> adjust the maxitems number definition. >>> >>> Signed-off-by: Yanhong Wang >>> --- >>> Documentation/devicetree/bindings/net/snps,dwmac.yaml | 9 +++------ >>> 1 file changed, 3 insertions(+), 6 deletions(-) >>> >>> diff --git a/Documentation/devicetree/bindings/net/snps,dwmac.yaml b/Documentation/devicetree/bindings/net/snps,dwmac.yaml >>> index e26c3e76ebb7..baf2c5b9e92d 100644 >>> --- a/Documentation/devicetree/bindings/net/snps,dwmac.yaml >>> +++ b/Documentation/devicetree/bindings/net/snps,dwmac.yaml >>> @@ -133,12 +133,9 @@ properties: >>> - ptp_ref >>> >>> resets: >>> - maxItems: 1 >> >> Also, this does not make sense on its own and messes constraints for all >> other users. So another no for entire patch. >> > > Thanks. Change the properties of 'resets' and reset-names like this: > > resets: > minItems: 1 > maxItems: 2 > > reset-names: > minItems: 1 > maxItems: 2 > > Is it right? Do you have any other better suggestions? Isn't this allowing two reset items for every variant of snps,dwmac? Best regards, Krzysztof