Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5551239rwd; Mon, 5 Jun 2023 05:30:01 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6nO1a0XV98GiEC0TNjwyLI9AwLR4QOR4sVBuX4bU93EP5elWKUOPF9pEistZUhV8bB8Ijc X-Received: by 2002:a05:6358:9f87:b0:129:cb51:7efe with SMTP id fy7-20020a0563589f8700b00129cb517efemr1542114rwb.14.1685968201474; Mon, 05 Jun 2023 05:30:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685968201; cv=none; d=google.com; s=arc-20160816; b=VWZaY8BTEOcOd/BqEV8kEEEvo29XE+j8eVG39nRcgakpMkmNTQToKg4SkjfMEel0Dp Ru7i77J2QCPpxGuFDZI4tfsZW4+dClA5nB/K2IUZaKOfBWpEDp7jgsgMQxe6Hu39EEBj 16SjqbiZS7tQ5qcgpf/LthkCnSS3Lr5sPEgSZ1imTOgeZKW/YwQspfgLTHSlg5PK7PA5 IciEYUzwnVwPKN62hwE/UF3ftqs9mByuDXfRpSXagb7VDR7hU8AKkvaVKEKm5i8qSTSX ikzCRf0oirkO4dIDw4LS2pSXrN56OuqWIuEswfduG8awykd/Wul1Kldq4EiOF5MaoYU0 HH4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=7WiLrLsF5xVxXNcAy4Mh7e7hxHBVb5egJsZ8LOLNRvo=; b=VFlyhMLsC8/QN4QwShgs6dZ2DMvQCj/uZnqfP/Oh2zBemwvvaRHtJVw4j821c3lx/2 nkTE319e+aExBgRVoLMQzgKyQsTIxLPbb5Grm4FkYpQ5bnHlHGnnTf9ECZHcFz4I5mi7 xU9Fxsbil31xvMdfzC97A9hJau9DM5h6SedjqHTQDvlfGBs8JSNgp3huqZFRDV+lTuP3 lh9lUq9cFCWKDaq3bjdGkf6QPXKCOOMRGqp/OIlwMchIOkFlBC2KgfXYokYmkB+WsD5/ MbziMVONZUONh4YYLnMCxGa0mqegej0e6EkxPm76DP8DFlFFWFusXvevEjA72oUymhwN BgSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=2o1kwlV3; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=bMOmsPyC; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 28-20020a17090a1a1c00b00250a970092bsi4024495pjk.4.2023.06.05.05.29.44; Mon, 05 Jun 2023 05:30:01 -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=@arndb.de header.s=fm1 header.b=2o1kwlV3; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=bMOmsPyC; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233241AbjFEMWw (ORCPT + 99 others); Mon, 5 Jun 2023 08:22:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233008AbjFEMWk (ORCPT ); Mon, 5 Jun 2023 08:22:40 -0400 Received: from wout1-smtp.messagingengine.com (wout1-smtp.messagingengine.com [64.147.123.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C1FAE68; Mon, 5 Jun 2023 05:22:15 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 9A3D53200913; Mon, 5 Jun 2023 08:22:11 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute6.internal (MEProxy); Mon, 05 Jun 2023 08:22:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm1; t=1685967731; x=1686054131; bh=7W iLrLsF5xVxXNcAy4Mh7e7hxHBVb5egJsZ8LOLNRvo=; b=2o1kwlV3Do2loqfo88 8E8nDDB5CavhahXYo6NRabED24JsbSPlA/28nBdwLSv8pPi6tdbInnX6ZLfYGJIm d/ZZHp7m3paDvnOH0noWl7Ko/QtboQpabiwAApHaYpbnOwCG8p32w6UHX3sH2Ryu +1MCyFRdDI/RN6Vs811t++D4ZDUd9Q086Ay7fCnXsIeNNYynG3hZ+0AZcg8R/dGf /pCFJ5fYIIzQeWOQ9TU+7r18p7N0MpyKzCac44ZpElncC9G/hZJVnXyo8ZaNm+H5 Xu64ngLXypJBb9h19upA8yk8tu8iWMkH+/NUkndFMdFatP/V6RtvpzMYJ0L+1GlG BYjw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1685967731; x=1686054131; bh=7WiLrLsF5xVxX NcAy4Mh7e7hxHBVb5egJsZ8LOLNRvo=; b=bMOmsPyCvbE5xOYlrfbDXKiyTdvl0 h1VBo3CiJg9/m3T4yfz7v6rr4FNGm/olLi+ic+M4vg1lnfrcUE5OFFK2K9z+7YPV 1uLrhqglfmTMp0PhHZ40d1x813XFyKNPtEhylYRwrnhGTJrWr6J4kNdDxDPFe7HG Bq3psbyd1ZbIVb5pPBWyAH2s78xfNogW1DvNWuncHMbTSH7xFkyBLGVqKRpaEK1Q u+SEAeHhjPQPRh6JCOdsylGdjmsMme9LyKKeqNNtfyhSVnrf2ka0IyRtrUXjnn/C A8jkfIUvqaljFkLxBRaemIN76g3qGznuTBwEZYlOUJEyOl1SkhQw2DpNA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeelledgheduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepffehueegteeihfegtefhjefgtdeugfegjeelheejueethfefgeeghfektdek teffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 96776B60086; Mon, 5 Jun 2023 08:22:10 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-447-ge2460e13b3-fm-20230525.001-ge2460e13 Mime-Version: 1.0 Message-Id: In-Reply-To: <3e262485-bf5f-1a98-e399-e02add3eaa89@microchip.com> References: <20230603200243.243878-1-varshini.rajendran@microchip.com> <20230603200243.243878-22-varshini.rajendran@microchip.com> <3e262485-bf5f-1a98-e399-e02add3eaa89@microchip.com> Date: Mon, 05 Jun 2023 14:21:50 +0200 From: "Arnd Bergmann" To: "Nicolas Ferre" , "Krzysztof Kozlowski" , "Varshini Rajendran" , "Thomas Gleixner" , "Marc Zyngier" , "Rob Herring" , krzysztof.kozlowski+dt@linaro.org, "Conor Dooley" , "Alexandre Belloni" , "Claudiu Beznea" , "David S . Miller" , "Eric Dumazet" , "Jakub Kicinski" , "Paolo Abeni" , "Greg Kroah-Hartman" , "Russell King" , "Michael Turquette" , "Stephen Boyd" , "Sebastian Reichel" , "Mark Brown" , "Gregory Clement" , "Sudeep Holla" , "Balamanikandan Gunasundar" , "Mihai.Sain" , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Netdev , linux-usb@vger.kernel.org, linux-clk@vger.kernel.org, linux-pm@vger.kernel.org Cc: Hari.PrasathGE@microchip.com, cristian.birsan@microchip.com, durai.manickamkr@microchip.com, manikandan.m@microchip.com, dharma.b@microchip.com, nayabbasha.sayed@microchip.com, balakrishnan.s@microchip.com Subject: Re: [PATCH 21/21] net: macb: add support for gmac to sam9x7 Content-Type: text/plain X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Mon, Jun 5, 2023, at 14:07, Nicolas Ferre wrote: > On 05/06/2023 at 08:42, Krzysztof Kozlowski wrote: >>> >>> diff --git a/drivers/net/ethernet/cadence/macb_main.c b/drivers/net/ethernet/cadence/macb_main.c >>> index 29a1199dad14..609c8e9305ba 100644 >>> --- a/drivers/net/ethernet/cadence/macb_main.c >>> +++ b/drivers/net/ethernet/cadence/macb_main.c >>> @@ -4913,6 +4913,7 @@ static const struct of_device_id macb_dt_ids[] = { >>> { .compatible = "microchip,mpfs-macb", .data = &mpfs_config }, >>> { .compatible = "microchip,sama7g5-gem", .data = &sama7g5_gem_config }, >>> { .compatible = "microchip,sama7g5-emac", .data = &sama7g5_emac_config }, >>> + { .compatible = "microchip,sam9x7-gem", .data = &sama7g5_gem_config }, >> >> These are compatible, aren't they? Why do you need new entry? > > The hardware itself is different, even if the new features are not > supported yet in the macb driver. > The macb driver will certainly evolve in order to add these features so > we decided to match a new compatible string all the way to the driver. It sounds like you can still drop this patch though, and only add a specific entry here after the .data field is actually different when those features get added. The important bit for now is to have the specific string in the binding and in the dtb, along with the fallback for I assume "microchip,sama7g5-gem". Arnd