Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp509659pxy; Fri, 30 Apr 2021 09:57:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyM0pHGW7pjdRdvUiEncLyLwX88ArS8gHF0utRrWxNqE4ZcXzPPztBMU7VbmOJ3sBLEgJa0 X-Received: by 2002:a17:906:a10e:: with SMTP id t14mr5380466ejy.103.1619801858081; Fri, 30 Apr 2021 09:57:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619801858; cv=none; d=google.com; s=arc-20160816; b=VTghO6iHkX3d+2aGIFwoz58a4zY4rpFgRHkfLsOFpke1v2YpZUbIafcMKXeSy2omUu P/kgby7GTaNSkgmG5tfLMul+2/rhow/B1T969t+hMRCLPWGibG3kTRCMvgVN/TNO1JE6 ONznaKEzTHdOkl290hp3dLW8jrwjO4xVUKxmDNDumQcqm4hTRXrgm2CzoetoFrXpfDzg WHlkfTx790QFKEE2wEajpuCisRU8fscNhkiQUk+HgTv2j2tk/U1FNHR1Lzl0ikQLmSY0 gCke6089eWtfOrzCS3gfpvyPkzNTg2OKhUPQmuBdTY2fksxLbjpbYrsOdGV5q9O7kBpj 0kDg== 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; bh=Fn0+Ma/enSD+3LdIpBvos3XuLHs/2tBuhOJCtqzHHjY=; b=xxpI/ZAIGMsQ2wzCo9CP60Nh7pdZl/fHHBLAcIKoHSWm/Aa0sXL6XtVs2z0UaYlaIU RPrxhNGcpUItPpc50hNelCHGAu1UY1/yM9lHOUgiGxL0ZepPUg9bq/kytoRIulx7yMyJ cHTX/vnyZHvqr5Lq1fBzNoSZ0OYRTynOSz/etT0pYaiFqEikhymS3mp2S1SALT4pl2wv MGZiGvNUHF5Wp22MwDysTq1rJF60c3UxnMUqfodQ2OWOgU7wckjU06nBQRJihI+1dVeM KwpPVegemxgObuS6rzSm/xbIRI3Eeu//rn9C+NGgxJWQLZO/v270gFbO72JZXzZhCjJo GaaQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id oq21si3690488ejb.276.2021.04.30.09.57.14; Fri, 30 Apr 2021 09:57:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229954AbhD3Q5G (ORCPT + 99 others); Fri, 30 Apr 2021 12:57:06 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:48256 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229750AbhD3Q5C (ORCPT ); Fri, 30 Apr 2021 12:57:02 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1lcWQw-001q8G-Hb; Fri, 30 Apr 2021 18:56:06 +0200 Date: Fri, 30 Apr 2021 18:56:06 +0200 From: Andrew Lunn To: Randy Dunlap Cc: Oleksij Rempel , Shawn Guo , Sascha Hauer , Florian Fainelli , Heiner Kallweit , Fugang Duan , Geert Uytterhoeven , kernel@pengutronix.de, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-imx@nxp.com, Fabio Estevam , David Jander , Russell King , Philippe Schenker Subject: Re: [PATCH net-next v1 1/1] net: selftest: provide option to disable generic selftests Message-ID: References: <20210430095308.14465-1-o.rempel@pengutronix.de> <20210430154153.zhdnxzkm2fhcuogo@pengutronix.de> <6865cd7a-7f2e-13f5-a588-8877d771b834@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6865cd7a-7f2e-13f5-a588-8877d771b834@infradead.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 30, 2021 at 09:33:42AM -0700, Randy Dunlap wrote: > On 4/30/21 9:23 AM, Andrew Lunn wrote: > >>> Thanks for the patch/option. But I think it should just default to n, > >>> not PHYLIB. > >> > >> It should be enabled by default for every device supporting this kind of > >> selftests. > > > > I agree. > > > > I still wonder if there is confusion about self test here. Maybe > > Probably. > > > putting ethtool into the description will help people understand it > > has nothing to do with the kernel self test infrastructure and kernel > > self testing. > > So it's a hardware check that is required to be run if it's implemented > in a driver? > > Required by who/what? It is not required, but it is a useful debug tool for the educated user. Root can run the self tests on the network interface. If the self test pass, but the interface does not work, you probably have a cabling or configuration issue. Networking is complex and being able to eliminate the interface hardware lets you concentrate on some other part of the problem. You can then maybe next use the cable test option of ethtool to see if the cable has a problem. Andrew