Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1693447rwe; Sat, 27 Aug 2022 14:30:56 -0700 (PDT) X-Google-Smtp-Source: AA6agR6FTudm8uDkEAXkGQ8hb3ob+THxLQvesRpUi1Brigc1+Eu7JsQUC/A8fRXT8RBS4SkBQKB2 X-Received: by 2002:a63:2bc2:0:b0:42b:b6a8:de74 with SMTP id r185-20020a632bc2000000b0042bb6a8de74mr2251396pgr.398.1661635856741; Sat, 27 Aug 2022 14:30:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661635856; cv=none; d=google.com; s=arc-20160816; b=jg1RVlRKz3UNf0zrd5Nzusho8ATyEoulY5aFq3f5zOHXPyzyZOpNeQWLtBGpPBQ03J jbihsy1CzP1Esz8uRCB81WhZEleLfdj6kUhrIVyIMg5/UQ9u3CApccQCmSEKABiJe1CN LW90EctzaJuK8ccWvSlJhAlkqSVlb1mnqo5GuVBR6EVY5cKXTOndcp6E5y3xtoR+MGk5 QNkYtVVsujT+ILaD+Wz687R0heEEmHP9Ap6MOdbGjyyXcyCwzaN1tAVYk4bbSroRyRXq Ydqq5B8X/Eo8XqN1VgcSWJsrQHQ+WOZGbxrOPIKj4r1O0UbgwQ0miHKa4hhgvieG5q+P 4VbQ== 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=64hvREkNh53C/RDviN6vUPQLGsTZMfqdbVZdTxQHdgc=; b=RCy5Zr/uaq/1iP5Ts0b0NbXg2hJisEGjfsaTs/TW9QerqLGzFPSdAg5C8WdkLp5HfJ 1tGfkDY4A32ulx+YEs4WMjocHEJQNl+RQlGYEf9qngmPvu4/TWcIhcly8yb32jUvT86I mHav7jkQlEfn+zfVsIxVVSpzpZkPciFxP9/xp8EbFGDE9cv0z5s56ESb1HwJX4mK2Gu0 H1JuuG9LwxMzzccI5mp2wqQzZuwNkiLFaDMnZ3ensBdyjuu33aRJarPX0EZ0Mv1PNqfQ wf1jwX8ltxDX6DCmOoEl7kys01s6kH5ja/jtFGdbCMXo2EHZl6w6yHtICNBBHWIklJxp SCNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=HBVeLjjx; 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 l62-20020a639141000000b0042b964fd0b6si2423631pge.333.2022.08.27.14.30.45; Sat, 27 Aug 2022 14:30:56 -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=@lunn.ch header.s=20171124 header.b=HBVeLjjx; 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 S231462AbiH0T22 (ORCPT + 99 others); Sat, 27 Aug 2022 15:28:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229462AbiH0T21 (ORCPT ); Sat, 27 Aug 2022 15:28:27 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F9E54BA57; Sat, 27 Aug 2022 12:28:26 -0700 (PDT) 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=64hvREkNh53C/RDviN6vUPQLGsTZMfqdbVZdTxQHdgc=; b=HBVeLjjxnhb1n+GOr4/0fMgkc1 WoVAyTEjg2tvG5HSL4lF4fcaeff2C7FSUA2TsHYvFFUlWrYTo7+diaMW3P/MlP+lv18t3UCB1fIsI J6LwhvK08IPcvJX4AEm6zkz6qqOgrgy9aAhW+eggAEGqZYh4VfphzUMFn1G1gOA7Uv3E=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1oS1Th-00Enbk-4H; Sat, 27 Aug 2022 21:28:21 +0200 Date: Sat, 27 Aug 2022 21:28:21 +0200 From: Andrew Lunn To: Maxime Chevallier Cc: davem@davemloft.net, Rob Herring , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, thomas.petazzoni@bootlin.com, Florian Fainelli , Heiner Kallweit , Russell King , linux-arm-kernel@lists.infradead.org, Vladimir Oltean , Luka Perkov , Robert Marko Subject: Re: [PATCH net-next v3 1/5] net: ipqess: introduce the Qualcomm IPQESS driver Message-ID: References: <20220826154650.615582-1-maxime.chevallier@bootlin.com> <20220826154650.615582-2-maxime.chevallier@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220826154650.615582-2-maxime.chevallier@bootlin.com> 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, 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 > +static void ipqess_get_strings(struct net_device *netdev, u32 stringset, > + u8 *data) > +{ > + u8 *p = data; > + u32 i; > + > + switch (stringset) { > + case ETH_SS_STATS: > + for (i = 0; i < ARRAY_SIZE(ipqess_stats); i++) { > + memcpy(p, ipqess_stats[i].string, > + min((size_t)ETH_GSTRING_LEN, > + strlen(ipqess_stats[i].string) + 1)); That looks pretty similar to strlcpy(). > +static int ipqess_get_settings(struct net_device *netdev, > + struct ethtool_link_ksettings *cmd) It would be traditional to have the k in the name. > +{ > + struct ipqess *ess = netdev_priv(netdev); > + > + return phylink_ethtool_ksettings_get(ess->phylink, cmd); > +} > + > +static int ipqess_set_settings(struct net_device *netdev, > + const struct ethtool_link_ksettings *cmd) > +{ Here too. Andrew