Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1067634rwb; Thu, 1 Dec 2022 11:55:14 -0800 (PST) X-Google-Smtp-Source: AA0mqf7ReuO6rbu2qaHyji7V4yNd1tL32vHIzcg+UTqgkZLl6/xu7RK7EGUUtrMevaOYF43ru0gk X-Received: by 2002:a17:90a:710b:b0:218:725:c820 with SMTP id h11-20020a17090a710b00b002180725c820mr72322875pjk.170.1669924514079; Thu, 01 Dec 2022 11:55:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669924514; cv=none; d=google.com; s=arc-20160816; b=qIbAjYH//FMPlRtUzM1xWiVl3gJ2io9jmgl/8xobPQPopVxyn8Tm6S2Dzos2bSszLr uP5kwd+sZOWr2T/61+k92UMot/nDDt2ncjlkX5kQ27C7Hn4ZTtPEGAx0op2lBgNmHzXi c83VurcquEG/1GjPGpKFZQ1Ajze2aSy3mTKvdvw2jcrLf1a+FRi/oK5K5RIWX86JFsSj eFikl4n/ZFX+VezZsV5cyDNsL+C6TvkSk5EaVoKyTaWiPZHsjZHdwwkCkTknSEKGkFGJ HFsBURNGxEjTu3c/JARlCTtlPLB87de4YBAFny++kumPD4EgvXFT1ooSOy5NLewsiMdI jiKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=SmJRKIwqBp8gbnNMB6ag+fH04itLVPSAiCRSKnEYWIE=; b=lS/LHQwLsxhp7tsjdhGfcZ10XuEKRsWJ6s+z7M0xZ7jxldahAs+9PbhPLsWnGdqf+u u+meDbVUYmI9IiF+Lrj45+xg8T9qlnsrlZchS4pNGp+lLnQnjYqvhGT8XGSENkU9IdFA qTovzLmNcqOuozard7hQ5yQytHwCYEpr7d4mRblNpNveZnPWjUnGgtKVhbyBPArFCbfM BEGveUqGSXZyDBO8tJ+KRZKvNTGosqikqIhVv/1RUTP9gd6yGlrmIyxPi+K8E3z1maNu R2YOpDZ0gh/fzFrRMdmi2D+bNbTUfslJRO1jKh/Kl/6sffvF9c1ovhGVrtqeKEBlF/jk XwoA== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id me16-20020a17090b17d000b00218d3ce2332si9164906pjb.163.2022.12.01.11.55.02; Thu, 01 Dec 2022 11:55:14 -0800 (PST) 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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229793AbiLATea (ORCPT + 82 others); Thu, 1 Dec 2022 14:34:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230417AbiLATeK (ORCPT ); Thu, 1 Dec 2022 14:34:10 -0500 Received: from mail-oi1-f175.google.com (mail-oi1-f175.google.com [209.85.167.175]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17A0117883; Thu, 1 Dec 2022 11:32:50 -0800 (PST) Received: by mail-oi1-f175.google.com with SMTP id v82so3119750oib.4; Thu, 01 Dec 2022 11:32:50 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=SmJRKIwqBp8gbnNMB6ag+fH04itLVPSAiCRSKnEYWIE=; b=hAUSF4xG4hh6r8GdTzmDPwWiPqbF5hdtiIPW46K3ElnGIdqbz8dJDGUlJezyWA5uKh Y9HKwgCyJAY6lfK/VtfZDEtuDE3AwxW60ihhsW85S9TvC9y8W6UDFNBqGN9hLBHoQPyA os95G6yr3tOpMeXtSAsl/Z4ce/EdOu1gOGYKnNHvTvaUhgTZOlGdVz7t6EucaGqNnB8k ACLABYtd8Eq//NMDFLyWvxRZbHR83yJR7fI7k7xZaA44uZJQ/Womo2NWHvR08+mF+kDa XvaeAYRI6duO7pno0yqUTWGdvbNSatfRV2KokF8O7OBi4nWIWBhNczuNDUn8JTKrFVlr WZeQ== X-Gm-Message-State: ANoB5pnxOzrR/gHbYj5ymOB+iyGchUwFnqW5EjJWMMvhmOPIu7vaO4GO gPlorxo0SzXPykhdaYfSIg== X-Received: by 2002:a05:6808:8c9:b0:351:1a63:a74c with SMTP id k9-20020a05680808c900b003511a63a74cmr23789693oij.288.1669923169283; Thu, 01 Dec 2022 11:32:49 -0800 (PST) Received: from robh_at_kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id z95-20020a9d24e8000000b0066101e9dccdsm2524124ota.45.2022.12.01.11.32.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Dec 2022 11:32:48 -0800 (PST) Received: (nullmailer pid 1203239 invoked by uid 1000); Thu, 01 Dec 2022 19:32:47 -0000 Date: Thu, 1 Dec 2022 13:32:47 -0600 From: Rob Herring To: Conor Dooley Cc: Krzysztof Kozlowski , Yanhong Wang , linux-riscv@lists.infradead.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Krzysztof Kozlowski , Emil Renner Berthing , Richard Cochran , Andrew Lunn , Heiner Kallweit , Peter Geis Subject: Re: [PATCH v1 3/7] dt-bindings: net: Add bindings for StarFive dwmac Message-ID: <20221201193247.GA1190273-robh@kernel.org> References: <20221201090242.2381-1-yanhong.wang@starfivetech.com> <20221201090242.2381-4-yanhong.wang@starfivetech.com> <36565cc1-3c48-0fa8-f98b-414a7ac8f5bf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS autolearn=no 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 Thu, Dec 01, 2022 at 05:35:37PM +0000, Conor Dooley wrote: > On Thu, Dec 01, 2022 at 05:21:04PM +0100, Krzysztof Kozlowski wrote: > > On 01/12/2022 10:02, Yanhong Wang wrote: > > > Add bindings for the StarFive dwmac module on the StarFive RISC-V SoCs. > > > > Subject: drop second, redundant "bindings". > > > > > > > > Signed-off-by: Yanhong Wang > > > --- > > > .../devicetree/bindings/net/snps,dwmac.yaml | 1 + > > > +properties: > > > + compatible: > > > + oneOf: > > > > Drop oneOf. You do not have more cases here. > > > > > + - items: > > > + - enum: > > > + - starfive,dwmac > > > > Wrong indentation.... kind of expected since you did not test the bindings. > > > > > + - const: snps,dwmac-5.20 > > Disclaimer: no familiarity with the version info with DW stuff > > Is it a bit foolish to call this binding "starfive,dwmac"? Could there > not be another StarFive SoC in the future that uses another DW mac IP > version & this would be better off as "starfive,jh7110-dwmac" or similar? Yes. Really, *only* "starfive,jh7110-dwmac" is enough IMO. The question is what would the OS do with only understanding "snps,dwmac-5.20"? The answer is typically nothing because it isn't enough information to act on. So that compatible is not needed. Maybe the driver can do some things based on version, but that can be implied from the compatible (if not read from a register). And often, the exact version is not known, so do you want to hardcode a guess in DT? For these reasons, we've moved away from using these generic IP compatibles (with or without versions). Rob