Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp519640ybk; Wed, 13 May 2020 06:16:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIDDY+BrL+vxS0JldBNGvVa5bRdyJXc+4QnHbVXXQE6pSXWGNYgHXAUrT12Ns4vXvG2IAL X-Received: by 2002:a50:d50f:: with SMTP id u15mr2821335edi.244.1589375810984; Wed, 13 May 2020 06:16:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589375810; cv=none; d=google.com; s=arc-20160816; b=J5JbwFgHDNQkmRguMWQTaTCMW46ZLPNmdUbviOniiewZ1TNwut/1+Up0L4ro9BdAio pbV6jsw+LHlpQHeamEFP7PR8JL2sbs38DEZicJ178HX3sosB0ABbjvdynnNBYF1cSkn1 CGVb8kARP6aJJkFR4Tnbu83T1hSqx/z6gY+md2GE14qqBtl0NA3Ru9nxlob56u8AkPsA lOMtl8MUTNlI7cX51h+U/28DAwLuxYECFEMDNgZwxNf0VfTnVmMTWaY1aN3jrjogxYn0 1posPjNRIOVd/+TqRz76YSrn+hDdiYvl0WnwT392fHPOdOojMbueMRoaQG9TnS9UmJxU Yspw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=eB5FjLH7T6LhaFmYc7bOJ9LyuU3m4PmCrJlFeQNyDeA=; b=CcULohlKrfJwqK4zblUQh+ebKw2yuxI1l5LzM7chbOlkEN24+B9nPUfEXVElXfOS7y a64YQBKSbtaOT3mS/A6tQRw3aP+Tgb/WsY1NacVIqkH91PblvtDoDZjz/p5w4H1octrx P5ZofEf4wnaXk5vFK1CfFUFCBbuksSVxNse9kC0LwlqMK4Fkw3Dch/6NArg4+JS5zj9M X1x1iJI8AM1wOZ59IJSWkgUd0n5hJwpi/6oGiPIDeXzKrNS97YUn2EGcbKj/SYjbbnyg CJFGUjUEYFfQR4zTkheZHPoO0Ywdyvy/hzKEq0LL0Br2mEN7ES8Kvscd0pLlZ2CpUFk0 xMUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=vaW0tWNY; 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 t23si91085eje.111.2020.05.13.06.16.26; Wed, 13 May 2020 06:16:50 -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; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=vaW0tWNY; 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 S1728815AbgEMNMh (ORCPT + 99 others); Wed, 13 May 2020 09:12:37 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:57772 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725925AbgEMNMh (ORCPT ); Wed, 13 May 2020 09:12:37 -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=eB5FjLH7T6LhaFmYc7bOJ9LyuU3m4PmCrJlFeQNyDeA=; b=vaW0tWNYAWeERIsAFaRBT+vCbp OYPNdm8F5mu8ZorEnYvHUlsajv4DP/hvwjHpJinMAKOx4yTeNdFjALpgHM1zTc+lfQ8U6f5xIXy7Z pGbgboEFdxEV0PZcsWVUZY7T9v+upqrr0holqtzXHlM6L21fKbcZSAl7Fj/5+OrHf81s=; Received: from andrew by vps0.lunn.ch with local (Exim 4.93) (envelope-from ) id 1jYrBS-002A4R-3u; Wed, 13 May 2020 15:12:26 +0200 Date: Wed, 13 May 2020 15:12:26 +0200 From: Andrew Lunn To: Huazhong Tan Cc: f.fainelli@gmail.com, hkallweit1@gmail.com, linux@armlinux.org.uk, davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linuxarm@huawei.com, kuba@kernel.org, Yufeng Mo , Jian Shen Subject: Re: [PATCH net-next] net: phy: realtek: add loopback support for RTL8211F Message-ID: <20200513131226.GA499265@lunn.ch> References: <1589358344-14009-1-git-send-email-tanhuazhong@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1589358344-14009-1-git-send-email-tanhuazhong@huawei.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 13, 2020 at 04:25:44PM +0800, Huazhong Tan wrote: > From: Yufeng Mo > > PHY loopback is already supported by genphy driver. This patch > adds the set_loopback interface to RTL8211F PHY driver, so the PHY > selftest can run properly on it. > > Signed-off-by: Yufeng Mo > Signed-off-by: Jian Shen > Signed-off-by: Huazhong Tan It took three people to write a 1 line patch? > --- > drivers/net/phy/realtek.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/net/phy/realtek.c b/drivers/net/phy/realtek.c > index c7229d0..6c5918c 100644 > --- a/drivers/net/phy/realtek.c > +++ b/drivers/net/phy/realtek.c > @@ -615,6 +615,7 @@ static struct phy_driver realtek_drvs[] = { > .resume = genphy_resume, > .read_page = rtl821x_read_page, > .write_page = rtl821x_write_page, > + .set_loopback = genphy_loopback, > }, { > .name = "Generic FE-GE Realtek PHY", > .match_phy_device = rtlgen_match_phy_device, Do you have access to the data sheets? Can you check if the other PHYs supported by this driver also support loopback in the standard way? They probably do. Andrew