Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp11554171ybl; Fri, 27 Dec 2019 16:35:21 -0800 (PST) X-Google-Smtp-Source: APXvYqx5NaVMvHs3WLVg7NPAPMxNeT9W/MSQ2xE1CvWyXO2/s/GmbEpDbzTolBF8RB0BlPFqzdpe X-Received: by 2002:a9d:ec1:: with SMTP id 59mr56691209otj.141.1577493321236; Fri, 27 Dec 2019 16:35:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577493321; cv=none; d=google.com; s=arc-20160816; b=AJ7uziPw2oZWloyNiC2BKcnSRlupH21ipumG080EUu4adR/4xT5eBLWQI2jCSAuaOt E/ANngMHkQfi6dDTFC9h68rfXaLYm11xhNs+Ens4q0JQdj1L0Z1ag7w9eTGdCOMUU8Zq JTbLe7S9ilc5O5XngRPxTzS9XjxRESjl8DaMW3LJI7MO9RsoR5Nxk4uy0aLesHd6IVQQ PHOtJtdJtBOnMyJTbXV0qmXbRhPMi0S6StKiljEi0ur+SeRDh7tMIVU7FCYoZXfbuQlk Anv7YvPhdQiBAHs8EfM0mk8AYvPbCiZ9vghKrkwcUavC9hyrgA8Y09lsAJCDDzqRkiQh 1XhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=nV0VTIZajUd2GXAmXl8aQogfwTOlNs+kOrC8D1fwlWI=; b=V+AaRo9vNwoTfEWqozlM34KER+sjZ6zLSTcCjQtrIkHgx4Od+BhSQRLvq7yPdNO5Qe s0XVYRk7or+YcAClxSQvrxbl3zyF0yEnt+Ir80644eqGRzuhkx3Sqv6jVcz6dV/m7O6S ABqKhLwW3i1IVkS7GStbOCBiGZqZoAEuuoPUt/1co3vbQUnDleSQKV5c2rrsKkdBTEbP 2atDXLq0rVq1V0zQipPsDsYWyg7Ix4CQttLWXIpY3TupO7X8mSAaZAlc5f/bL2+e5qXs ivzRGBjEpFi3WO5gm2lo8FVZaOdKgi9XGScHr6jE4KiY27culwnJbeRz42gV0FTY1tPW Vgxw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t184si17589693oig.184.2019.12.27.16.35.08; Fri, 27 Dec 2019 16:35:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726474AbfL1Ae2 (ORCPT + 99 others); Fri, 27 Dec 2019 19:34:28 -0500 Received: from shards.monkeyblade.net ([23.128.96.9]:53774 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725306AbfL1Ae2 (ORCPT ); Fri, 27 Dec 2019 19:34:28 -0500 Received: from localhost (unknown [IPv6:2601:601:9f00:1c3::3d5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id A5388154D115C; Fri, 27 Dec 2019 16:34:27 -0800 (PST) Date: Fri, 27 Dec 2019 16:34:27 -0800 (PST) Message-Id: <20191227.163427.23695455695969544.davem@davemloft.net> To: nikita.yoush@cogentembedded.com Cc: andrew@lunn.ch, vivien.didelot@gmail.com, f.fainelli@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, cphealy@gmail.com, l.stach@pengutronix.de Subject: Re: [PATCH v2] mv88e6xxx: Add serdes Rx statistics From: David Miller In-Reply-To: <20191225052238.23334-1-nikita.yoush@cogentembedded.com> References: <20191225052238.23334-1-nikita.yoush@cogentembedded.com> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Fri, 27 Dec 2019 16:34:27 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nikita Yushchenko Date: Wed, 25 Dec 2019 08:22:38 +0300 > If packet checker is enabled in the serdes, then Rx counter registers > start working, and no side effects have been detected. > > This patch enables packet checker automatically when powering serdes on, > and exposes Rx counter registers via ethtool statistics interface. > > Code partially basded by older attempt by Andrew Lunn. > > Signed-off-by: Nikita Yushchenko > --- > Changes from v1: > - added missing break statement (thanks kbuild test robot ) > - renamed variable ret -> err to follow the rest of the file Applied, thanks Nikita.