Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp343510ybk; Wed, 13 May 2020 01:29:29 -0700 (PDT) X-Google-Smtp-Source: APiQypKVOtW4/ryYVPBq+0x3Xu9Y0IIjb0YeFxxYpXNCyHOUUNXAx3WTRpdrovPYncYJdegcSS+k X-Received: by 2002:aa7:d783:: with SMTP id s3mr22018950edq.64.1589358569739; Wed, 13 May 2020 01:29:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589358569; cv=none; d=google.com; s=arc-20160816; b=SosrVgYI/spmzd7/hkms8gfOix2gHKnHwVOcYjTVvTkInpEndZVfD4IokdJrqDOAxg YUytExvXmDhOEUWaCGescmdfdwSkXJwYb5olRZWv113bNvIY1zs5ZBoXNduL42xscjdY cZIh5kHndE6TLxpYRt29+hrWnnq5Z0VqUkyZ5KuoSFwpq3YSRrkf8a9r3qHHSPjoRnBa JM4aSbbsHfF8AaDLKfDQT8k045TWvr5ZguH8qgxwtgGiykm3pzMcziKrVMmGVxzUaTPy gEK+e7NRDCR6lQTc9+ZewQsXBNegeAOJau3dG3/qHJxfu+CzoluYGvL7bv3PZwEsVIVM lMLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=aHolhPgGHD0MtzsT5KXPVawLyyENY39/8mon25Z39/w=; b=SNm/Y4B7C0fXRpxEgJHlevRXmhjpANCQxn8pGcWJsQ1p1JAjffjUuTLUESzsWj4vmQ 83F/ZrbdRiZSUCyWvpBEr0f2QP0c4ecT4bFv1RwzbVdfy8qOEw2N0SSEc0CCvaouTLxV Zg607qOmiZ5SCKQR/mudgmEDG+P0EJTfLQJ9Y2bzjGdS0MIi5RWH+0MhoFHnS7PqokDW 34gphLSb8tFI/y8wHuPqScyTnx431ihNe2XHz6JdyTtmskvUnDkSLyv99Y4aHKwBvHZP liXmp4mZPQQtYdOwq6stPvBFsESF4yG3yB+bTXnQua9486sBRHdsgwqsZR75BXSAcAIb wUUQ== 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 ar7si5093922ejc.449.2020.05.13.01.29.05; Wed, 13 May 2020 01:29:29 -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 S1732155AbgEMI1Q (ORCPT + 99 others); Wed, 13 May 2020 04:27:16 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:47000 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729189AbgEMI1P (ORCPT ); Wed, 13 May 2020 04:27:15 -0400 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 462ABAAF877951E563CA; Wed, 13 May 2020 16:27:11 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.487.0; Wed, 13 May 2020 16:27:04 +0800 From: Huazhong Tan To: , , , , CC: , , , , Yufeng Mo , Jian Shen , Huazhong Tan Subject: [PATCH net-next] net: phy: realtek: add loopback support for RTL8211F Date: Wed, 13 May 2020 16:25:44 +0800 Message-ID: <1589358344-14009-1-git-send-email-tanhuazhong@huawei.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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, -- 2.7.4