From mboxrd@z Thu Jan 1 00:00:00 1970 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 C1D6CC43334 for ; Tue, 26 Jul 2022 00:22:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237307AbiGZAW1 (ORCPT ); Mon, 25 Jul 2022 20:22:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229970AbiGZAWQ (ORCPT ); Mon, 25 Jul 2022 20:22:16 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0AAD27FE9; Mon, 25 Jul 2022 17:22:14 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id j22so23430934ejs.2; Mon, 25 Jul 2022 17:22:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=6fkE3E+IwWr/jMUVZLcimgZqvTNf8bUrcGGPFWeGqFc=; b=UXiUIlc4jhg/GkpTggAtu/yC1OXku8y/l6jETyO0Y4BEort+Bv2riNeWpduEMGzoh8 gwpbWbCm2REVlRSrwhOwC2GpT4LhJCpD+W96w/S9zdBjR4HFK/9+4PZ+AM9Uanio74La d4zsjFmCNYfmx9ynZz8t1XLKYp/9B0Oqfa5AEZTXMlQdegyXszerZJwTPfw0MCbJScTz V5PzSF9VAYVgqtXvBdXKXSFtN7MA90WnN2WAkt2TdCyp10MBMpMmxlgO+DTmuSC9+ub8 MBL4QEX76fy7/Bt8A6YfqB8pCP8H7iKOfrx3MSejVybkWp9s/TwopSPAAnW6ZldkobAT emIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=6fkE3E+IwWr/jMUVZLcimgZqvTNf8bUrcGGPFWeGqFc=; b=OwiRbCVb0pqy8kcULI7EHJ4v/uDHogFa2ck/E5FGAekroRV0NxiusVwNpU3fYoLY3z hV7HF4qdnpGMWyQec3NnevXUQvJtRN60Hn/vm5Kv/JBigjIcDcZDIfiuQEgLOwLhzdOf BRFE9TUx4TCZc29j4x9kSbizNbMyUNQJ80hnc9pSNhtqmmpq6rfaw76xg+ZqRewqamem 7UDLeuSFOr63quH+pclydDLF3Prx9UFmpWgFz4fwKYgZ5jLjKMscuHHJwaNcpdCsh8B8 EAE+Cb9B+PvAYdVIjug3M0zuLw2ekuUSCX246RSXF2eG0dOIsZ2Wn5gaivQjzJYuhPEQ RGMQ== X-Gm-Message-State: AJIora8pyma8An9B89lf323hJE3tPEWRf5swUL61aM1E8s5TeX/o+WC/ fEydjs/WG/VLtbfwL8wgoDU= X-Google-Smtp-Source: AGRyM1tGTVY8Y62yWUPM6oQzbeimq9TIf1ic2tZr8yzpO+trzKjRWA956uiZyxbNvxugVfNsdhC7Dg== X-Received: by 2002:a17:907:a053:b0:72b:3051:b79b with SMTP id gz19-20020a170907a05300b0072b3051b79bmr11497426ejc.690.1658794933431; Mon, 25 Jul 2022 17:22:13 -0700 (PDT) Received: from skbuf ([188.25.231.115]) by smtp.gmail.com with ESMTPSA id 10-20020a170906210a00b0072b1bc9b37fsm5855383ejt.22.2022.07.25.17.22.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Jul 2022 17:22:12 -0700 (PDT) Date: Tue, 26 Jul 2022 03:22:10 +0300 From: Vladimir Oltean To: Christian Marangi Cc: Andrew Lunn , Vivien Didelot , Florian Fainelli , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Nathan Chancellor , Nick Desaulniers , Tom Rix , Jens Axboe , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, llvm@lists.linux.dev Subject: Re: [net-next PATCH v4 00/14] net: dsa: qca8k: code split for qca8k Message-ID: <20220726002210.vprs4qwgz7bucrjb@skbuf> References: <20220724201938.17387-1-ansuelsmth@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220724201938.17387-1-ansuelsmth@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jul 24, 2022 at 10:19:24PM +0200, Christian Marangi wrote: > This is needed ad ipq4019 SoC have an internal switch that is > based on qca8k with very minor changes. The general function is equal. > > Because of this we split the driver to common and specific code. > > As the common function needs to be moved to a different file to be > reused, we had to convert every remaining user of qca8k_read/write/rmw > to regmap variant. > We had also to generilized the special handling for the ethtool_stats > function that makes use of the autocast mib. (ipq4019 will have a > different tagger and use mmio so it could be quicker to use mmio instead > of automib feature) > And we had to convert the regmap read/write to bulk implementation to > drop the special function that makes use of it. This will be compatible > with ipq4019 and at the same time permits normal switch to use the eth > mgmt way to send the entire ATU table read/write in one go. I'm done reviewing v4, from my side you can consider addressing the style comments as well as the comment on patch 1 from v3 and you can resend.