Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2631116rwb; Wed, 30 Nov 2022 08:54:57 -0800 (PST) X-Google-Smtp-Source: AA0mqf7Bpu7ByXyY6grQ7KWTwlbofHIgIfElUUaDBmxjkKAA/UmmnUgOw/P4KGmMr7uw2ayv7cuK X-Received: by 2002:a17:907:8dcc:b0:7b2:b5aa:f1e0 with SMTP id tg12-20020a1709078dcc00b007b2b5aaf1e0mr40396890ejc.54.1669827296852; Wed, 30 Nov 2022 08:54:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669827296; cv=none; d=google.com; s=arc-20160816; b=SDW+qzoSHvkZH80tUY+B5pxLAHr8NIexipB9mr8/ArSa+bUobzSv9vdy5iJVkWwyd/ Gp4WjYcF+jfXSjcUUylKJfRw19oRbWlblrSuP5Zp1OQ/CDm49DVSNuX12/86nw+tdosQ OtvUVZdRX6xd4ksTCPW+6K3Pd8qLiHMnhhzZrrnXo/3VnVjN6ZI5HcxONKlq8bm4tf6d otGzlZ9nejWg3I70iCEd6BPK0KZQUBfAVrIbxdo5RsSfRxYS/psEk6nW/FfxMLZYbQyS Knx1BFnBgZxnSo03Ee1gZt6uC0cQK5IqUzTHUN/MEwKk3elOgzOJYGI1X37qjrfE3fZO usIA== 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:dkim-signature; bh=OUNGczKLtoTFfHGD0SF31C8NuWnHJPpbTjgMWEvvmPg=; b=1DBF3FSV9qNqeI3OJoVvfd8Oifo/ppGCZyIW7lOB/N4BMPNW3aV6nhCrv1wsSGIX++ IYnfHwd+buDQD73fKBcRiVkqOZEEVtM5Qbs7oYs8CujTZvEmYmsffCkjxQbOQx6BTS/O yCPNNj/gf4u6nfxq6ve4jS3bmyRWrwoMQ1tanh27Pvko7t1LVxftpxxZJfwFgL9P4XVR tX4Ii0Ork/EiawpJW2Qi1p0KU4dbknGbhTtP/mzi/hJQ4sgSh63bqDkDdZ9err1wd7vh /MNtbVkAHlf60BW/hwfObq9yTAI7MngnfXjlNI/6+sUBt8DEou1L1s2XfX8wfJTrlsS7 W1Vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=ufOCFYwR; 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=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d14-20020aa7d5ce000000b0046af5c0f32asi1757847eds.37.2022.11.30.08.54.36; Wed, 30 Nov 2022 08:54:56 -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; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=ufOCFYwR; 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=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230056AbiK3QA5 (ORCPT + 83 others); Wed, 30 Nov 2022 11:00:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229566AbiK3QAz (ORCPT ); Wed, 30 Nov 2022 11:00:55 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5828E2D76C; Wed, 30 Nov 2022 08:00:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=OUNGczKLtoTFfHGD0SF31C8NuWnHJPpbTjgMWEvvmPg=; b=ufOCFYwR5jmgFZ3usHJpYBuEmt aiF0jisuM22MFMausqtbapSe3Pz2QEGhWVSNaYyVnah0yrEUxcDpCu2+n4jNBC07GQFULP0628044 qzhQ9UbsD9ueFdAibw2zUEObHsFLRzVca2ISt2M5nFK6l7/5ZhJEqKNp0DrjzW9acFjc=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1p0PVp-003yHF-B4; Wed, 30 Nov 2022 17:00:41 +0100 Date: Wed, 30 Nov 2022 17:00:41 +0100 From: Andrew Lunn To: Jerry.Ray@microchip.com Cc: olteanv@gmail.com, f.fainelli@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v3] dsa: lan9303: Add 3 ethtool stats Message-ID: References: <20221128205521.32116-1-jerry.ray@microchip.com> <20221128210515.kqvdshlh3phmdpxx@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS 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 Wed, Nov 30, 2022 at 03:57:35PM +0000, Jerry.Ray@microchip.com wrote: > >> static void lan9303_get_ethtool_stats(struct dsa_switch *ds, int port, > >> uint64_t *data) > >> { > >> struct lan9303 *chip = ds->priv; > >> - unsigned int u; > >> + unsigned int i, u; > >> > >> for (u = 0; u < ARRAY_SIZE(lan9303_mib); u++) { > >> u32 reg; > >> int ret; > >> > >> - ret = lan9303_read_switch_port( > >> - chip, port, lan9303_mib[u].offset, ®); > >> - > >> + /* Read Port-based MIB stats. */ > >> + ret = lan9303_read_switch_port(chip, port, > >> + lan9303_mib[u].offset, > >> + ®); > > > >Speaking of unrelated changes... > > > > Cleaning up a warning generated from checkpatch Cleanups a good, but please put them in a patch of their own. https://www.kernel.org/doc/html/v4.10/process/submitting-patches.html#separate-your-changes 3) Separate your changes Separate each logical change into a separate patch. Andrew