Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp9699729rwp; Thu, 20 Jul 2023 08:31:02 -0700 (PDT) X-Google-Smtp-Source: APBJJlE9cQlP2GQJWAoPskweIcTSTaD2h5RE31HkHFw4gcEv8Rjc08Yaa5z4XWXICIWML44oy4Ai X-Received: by 2002:a05:6a00:ac7:b0:674:6dd4:8337 with SMTP id c7-20020a056a000ac700b006746dd48337mr27024796pfl.12.1689867061897; Thu, 20 Jul 2023 08:31:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689867061; cv=none; d=google.com; s=arc-20160816; b=Zm53rLqCjdoo6PnpAMbZeLqjLzP+Sd9fqGklUZeRFdtYTr1EgRdYq0wwXr3loEGit0 xwHoGXryLSJ5dfB7D8MlviYytSZ+PzS6nDIwjn6TrkgqjyUfVXPSnfc8/2R0rpLH3m+H XvK70YgLLMjetsg8yJyKYaUY7hQFfQL0kDdYKc3c9UHZIiBYmTE7uUL66DpwW4qf8unu tnm3MoZxRFSB8tr5X+u8L64mF1dM4QteJUhmMMhdVDYrsF9b3cYEu3jC24bDx9yPG2q7 cwiPgeMvzkMMJAMHNr48cG/bodYLE4i00EYxqgP0Fz1/QCWE7A5rmvGIkHtpCYtqAh3X LWiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=dGKkDonfPDUnoBuUb9DOqL29+xaR4pBOpOdtyy4tFiY=; fh=7XwpytWNJWz9RDezMNrW/rL2XV2qZuDON/LcrcvJR9o=; b=F5vq8jE43vQ8ARKo+aonIc02FklY+aOoAJyOJQAJJrTVFDK5MZirdrORzSGIh3gfZR G8wi5SWejoRoViATOLeVOx+cWulIZmhZDElwrmzRS0SnLtqag/xbspro1Sj3F9x4lI78 2dhX9Phswts+wFHrlvNO40YgCeulCpANbdnU7LEuCF7/DVgtUAJarcS5EgQ5sKiPvp6o FbMtmzngcEvnBbI03AVOkBe5ipT+cG2LDOr6pwWkoCyxSjbtT9Bn0onVikSSuaKHlghr ZTY21v4wSNEExqaM8bixUbWePfGXEeV28olrWwJEf4r9e0w0Ua/PRYkUwgkvf0LYLgA2 ncyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=P16yasEl; 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 u192-20020a6279c9000000b0066cc86468c5si1166383pfc.26.2023.07.20.08.30.48; Thu, 20 Jul 2023 08:31: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=@kernel.org header.s=k20201202 header.b=P16yasEl; 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 S232484AbjGTPRp (ORCPT + 99 others); Thu, 20 Jul 2023 11:17:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232327AbjGTPRo (ORCPT ); Thu, 20 Jul 2023 11:17:44 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A1F013E; Thu, 20 Jul 2023 08:17:44 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id ACE6161B46; Thu, 20 Jul 2023 15:17:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 65510C433C9; Thu, 20 Jul 2023 15:17:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689866263; bh=qYHzhCAUIzF07jkVYTmVpGY6QuZJidrqSGysBgEQ+mg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=P16yasElhZTEVFOLsqDGNj4lriTO6FsUW8YABCZuFpIMFix1NMiwqPaxeOXOJGNOk VfOItlUQjULagwjy03aN/moX4p0fVX1uyxELFFx7ST2p8Y2LanDjA80FYWJYqo902U B1dPtPEPCXdcO2vuWr+smF+q+CudYO+XVVfGf4muamAjCqLdYs5ly7RxarL53ghMO1 c7z4tglFywO9GUJRvnBTv0bIV43yd7al05bkCq1t3oVmo4Q8veUrMy96QxeUPfZzHU 5XBwXPyYA9MApwhmFlvKbYMA+lkCuL/2H3vC+cqcQMFlqFT90CDLJVT0Z8BkAASI1o Buaey1/Wipc4w== Date: Thu, 20 Jul 2023 08:17:41 -0700 From: Jakub Kicinski To: Md Danish Anwar Cc: MD Danish Anwar , Randy Dunlap , Roger Quadros , Simon Horman , Vignesh Raghavendra , Andrew Lunn , Richard Cochran , Conor Dooley , Krzysztof Kozlowski , Rob Herring , Paolo Abeni , Eric Dumazet , "David S. Miller" , , , , , , , Subject: Re: [EXTERNAL] Re: [PATCH v10 2/2] net: ti: icssg-prueth: Add ICSSG ethernet driver Message-ID: <20230720081741.0c32d5e6@kernel.org> In-Reply-To: <17cd1e70-73bc-78d5-7e9d-7b133d6f464b@ti.com> References: <20230719082755.3399424-1-danishanwar@ti.com> <20230719082755.3399424-3-danishanwar@ti.com> <20230719213543.0380e13e@kernel.org> <17cd1e70-73bc-78d5-7e9d-7b133d6f464b@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,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 Thu, 20 Jul 2023 17:12:50 +0530 Md Danish Anwar wrote: > Patch 1: Introduce Firmware mapping for the driver (icss_switch_map.h) > > Patch 2: Introduce mii helper APIs. (icssg_mii_rt.h and icssg_mii_cfg.h). This > patch will also introduce basic prueth and emac structures in icssg_prueth.h as > these structures will be used by the helper APIs. > > Patch 3: Introduce firmware configuration and classification APIs. > (icssg_classifier.c, icssg_config.h and icssg_config.c) > > Patch 4: Introduce APIs for ICSSG Queues (icssg_queues.c) > > Patch 5: Introduce ICSSG Ethernet driver. (icssg_prueth.c and icssg_prueth.h) > This patch will enable the driver and basic functionality can work after this > patch. This patch will be using all the APIs introduced earlier. This patch > will also include Kconfig and Makefile changes. > > Patch 6: Enable standard statistics via ndo_get_stats64 > > Patch 7: Introduce ethtool ops for ICSSG > > Patch 8: Introduce power management support (suspend / resume APIs) > > However this structure of patches will introduce some APIs earlier (in patch > 2,3 and 4) which will be used later by patch 5. I hope it will be OK to > introduce APIs and macros earlier and use them later. > > This restructuring will shorten all the individual patches. However patch 5 > will still be a bit large as patch 5 introduces all the neccessary APIs as > driver probe / remove, ndo open / close, tx/rx etc. > > Currnetly this single patch has close to 4000 insertion and is touching 12 > files. After restructring patch 5 will have around 1800 insertions and will > touch only 4 files (icssg_prueth.c, icssg_prueth.h, Kconfig, Makefile). This is > still significant improvement. > > Please let me know if this is OK. SGTM, thanks! One patch still being larger than others is a bit inevitable. > Also this patch has Reviewed-By tag of Andrew. Can I carry forward his > Reviewed-By tag in all patches or do I need to drop it? If the code is identical I reckon you can carry it.