Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp7475006ybp; Wed, 16 Oct 2019 09:11:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqx8Aw+uPdPwdlGeQwyBmawS868K33+3TxFG+nO7LUzDjf+vQByw/F4bxu//zMZ5dZIFuaDl X-Received: by 2002:a05:6402:64f:: with SMTP id u15mr39370664edx.231.1571242275272; Wed, 16 Oct 2019 09:11:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571242275; cv=none; d=google.com; s=arc-20160816; b=sHotDJPBr9aY+jcKpLsgD/XaFpQHLz+U9JSAgAqRdtMppV47gUiFf1FWnNy4Y63Fo6 QqAwgQ9LvK/9qT7lurMxvmHFenQY8yfkggbMjUVROAN2lsMzhNyeVZPg/y4jgbplrLIO TWFCZXbrQ7PCfpfHQcIX9uY/j5Hc3HrtE+z64Y01FKIFs4evFj+iZSmj6UuQw712qa17 J9N3qAxyVIx9i+Qk0QiRrvIqxKyBp0f4HzLWkrgCM9gdznSiymteQLdm8A7kIrbjZhHW ppziBitdNVO9KAg3hT5GlzxpcMSQ5jnuT41zFfYGBHNFK+Rlay8oYudY/+e4l5L/FSK5 1Zow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Yel5A7Nlk1GVVO5BMmxqt3XQopVkil3k1QScmPuKwqk=; b=BHVojzf0xvlWdJGetynHr5VJneFLI6kF8WMYVAyYM5lW7lcpsk0zfUJ1bcaN0F0yhj 2qtk8UQ/NoNdm43tkJccWO5vxVOTpRiPveqDW2ygSj8i2Jc3w1g5CKPUEkVCOH+2FPDQ QpIBmE1Ba3asicxJw1/s0Bnvwd/qY6R8BdnUuYq5be/wQw6EUxB45yftp5JgbtPAYJ4x Car4yaPhbz1t96Lr6FkLcLeFM4SkepDe3x32I6JZIQW0KS1QjCYRZxu71QyPJZlJMNJY 88cJcSYuaZy7KTGo7rF2Va32aJXRjxVrv6etMxg41Um3U5BLryjXqdzHHeFVO8FY8yJ4 a7pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=2WMA4dKW; 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 f57si17925243edb.165.2019.10.16.09.10.52; Wed, 16 Oct 2019 09:11:15 -0700 (PDT) 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; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=2WMA4dKW; 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 S2405624AbfJPN46 (ORCPT + 99 others); Wed, 16 Oct 2019 09:56:58 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:48452 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404394AbfJPN45 (ORCPT ); Wed, 16 Oct 2019 09:56:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=Yel5A7Nlk1GVVO5BMmxqt3XQopVkil3k1QScmPuKwqk=; b=2WMA4dKWSgbOpDLPcqYua4TJSL GusKDS1F4eOR4BmyTEkYtyigdtONrcKJ3iFYSQzVz+ih6OovLQuCH28TJcfnCJnju92Em/K3CdYTM eY4pJGcYpQHWKJEBSC8XxFrjzk2KA3Ec60wo58fFo3Hu931ynjkSOsi6D8vUxpM2xJk4=; Received: from andrew by vps0.lunn.ch with local (Exim 4.92.2) (envelope-from ) id 1iKjnJ-0007ix-1m; Wed, 16 Oct 2019 15:56:53 +0200 Date: Wed, 16 Oct 2019 15:56:53 +0200 From: Andrew Lunn To: Florian Fainelli Cc: netdev@vger.kernel.org, "David S. Miller" , open list , hkallweit1@gmail.com, bcm-kernel-feedback-list@broadcom.com, olteanv@gmail.com, rmk+kernel@armlinux.org.uk, cphealy@gmail.com, Jose Abreu Subject: Re: [PATCH net-next 1/2] net: phy: Use genphy_loopback() by default Message-ID: <20191016135653.GB17013@lunn.ch> References: <20191015224953.24199-1-f.fainelli@gmail.com> <20191015224953.24199-2-f.fainelli@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191015224953.24199-2-f.fainelli@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 15, 2019 at 03:49:52PM -0700, Florian Fainelli wrote: > The standard way of putting a PHY device into loopback is most often > suitable for testing. This is going to be necessary in a subsequent > patch that adds RGII debugging capability using the loopback feature. > > Signed-off-by: Florian Fainelli > --- > drivers/net/phy/phy_device.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/phy_device.c > index 9d2bbb13293e..c2e66b9ec161 100644 > --- a/drivers/net/phy/phy_device.c > +++ b/drivers/net/phy/phy_device.c > @@ -1514,7 +1514,7 @@ int phy_loopback(struct phy_device *phydev, bool enable) > if (phydev->drv && phydrv->set_loopback) > ret = phydrv->set_loopback(phydev, enable); > else > - ret = -EOPNOTSUPP; > + ret = genphy_loopback(phydev, enable); Hi Florian I think you need to differentiate between C22 and C45 somewhere. Andrew