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 DE391C433EF for ; Wed, 15 Dec 2021 09:55:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241362AbhLOJzc (ORCPT ); Wed, 15 Dec 2021 04:55:32 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:56136 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241360AbhLOJz2 (ORCPT ); Wed, 15 Dec 2021 04:55:28 -0500 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=Wo7Bt3GItEKAzp/uhSTvZXXLR4weKPbWsj1dWyciL9I=; b=RwC7fLRSck/BY+YsOsf9TzH1mx qufk/jEgXMAVX8OhCq6qZ2tt7OdhtJqGVQ6yib0h/B4qlCw/SqeuqziJEMzObduDAAXzp/w+H2vSL 56Fzld4cDYK2Q2wSNVXnU1Oxx1e3RMrj/LpR7bJ9v0Pe2IJepvKvF+g7l7xG/Q4woriU=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1mxR0P-00Gd76-II; Wed, 15 Dec 2021 10:55:25 +0100 Date: Wed, 15 Dec 2021 10:55:25 +0100 From: Andrew Lunn To: "Ismail, Mohammad Athari" Cc: Oleksij Rempel , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Voon, Weifeng" , "Wong, Vee Khee" Subject: Re: [BUG] net: phy: genphy_loopback: add link speed configuration Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > -----Original Message----- > > From: Andrew Lunn > > Sent: Wednesday, December 15, 2021 5:23 PM > > To: Ismail, Mohammad Athari > > Cc: Oleksij Rempel ; netdev@vger.kernel.org; > > linux-kernel@vger.kernel.org; Voon, Weifeng ; > > Wong, Vee Khee > > Subject: Re: [BUG] net: phy: genphy_loopback: add link speed configuration > > > > > Thanks for the suggestion. The proposed solution also doesn't work. Still > > get -110 error. > > > > Please can you trace where this -110 comes from. Am i looking at the wrong > > poll call? > > I did read the ret value from genphy_soft_reset() and phy_read_poll_timeout(). > The -110 came from phy_read_poll_timeout(). O.K. Does the PHY actually do loopback, despite the -110? I'm wondering if we should ignore the return value from phy_read_poll_timeout(). Andrew